Code Snippet Archives

Code Snippet

How to Use the WordPress Custom Fields Plugin

How to Use the WordPress Custom Fields Plugin

We explore some ideas of how you can use WordPress custom fields to create powerful enhancements to the appearance of your site.

How to Add Conditional Logic to Your WordPress Theme

How to Add Conditional Logic to Your WordPress Theme

We take a look at a few of the more commonly used Conditional Tags and how you might implement them into your own WordPress site.

20 Time-Saving WordPress SQL Query Snippets

20 Time-Saving WordPress SQL Query Snippets

WordPress stores every single scrap of information within a MySQL database. Posts, pages, comments, shortcodes, plugin settings… absolutely everything. The WordPress backend is fantastic and does allow you to manage…

Useful PHP Snippets for Improving WordPress Search

Useful PHP Snippets for Improving WordPress Search

We share ten really useful PHP code snippets that will help improve the result accuracy and functionality of search in WordPress.

An Introduction to WordPress Child Themes

An Introduction to WordPress Child Themes

Among the top features of WordPress is the ability to build a great-looking website even if you’re not a designer. Through the use of third-party themes, just about anyone with…

How to Create a Custom Color Palette for the WordPress Gutenberg Editor

How to Create a Custom Color Palette for the WordPress Gutenberg Editor

The beauty of the WordPress Gutenberg block editor is that it allows content creators more design freedom. But for web designers, it’s not always desirable to give clients access to…

Getting Started with WordPress Shortcodes & Sample Snippets

Getting Started with WordPress Shortcodes & Sample Snippets

We show you how to create and use different types of shortcodes, and share ready-to-use snippets you can use on your WordPress site.

An Introduction to WordPress Block Themes

An Introduction to WordPress Block Themes

An introduction into the basics of WordPress block themes, and discussion on how they compare and contrast to traditional themes.

Simple WordPress Snippets to Improve Your Secondary Navigation

Simple WordPress Snippets to Improve Your Secondary Navigation

Using these WordPress snippets can further help users get where they need to go and discover content they may have otherwise missed.

How to Display Content Based on WordPress User Roles

How to Display Content Based on WordPress User Roles

Using the current_user_can function, learn how to display custom content and special features based on the roles and capabilities of your WordPress users.

Controlling WordPress Through the Command Line with WP-CLI

Controlling WordPress Through the Command Line with WP-CLI

For anyone looking for more control and the ability to carry out complex WordPress tasks, learning how to use WP-CLI could be just what you need.

How to Add an SSL Certificate to Your WordPress Website

How to Add an SSL Certificate to Your WordPress Website