How to Let Users Dynamically Change the Number of Posts per Page in WordPress

Consider the following scenario: you have a WordPress blog with hundreds of posts. On your blog archive page, six posts appear at a time. Of course, there’s pagination for moving between older and newer posts. But what if you want to give users the option to choose the number of posts they want to display… Continue reading How to Let Users Dynamically Change the Number of Posts per Page in WordPress

How to Customize Contact Form 7 for WordPress: Floating Labels

You might have seen forms where the placeholder text is animated when you start typing into that input. This pattern isn’t new, yet still remains a popular trend in UX form design. Today, we’ll learn the steps needed for adding this behavior into a form built with Contact Form 7 (CF7), one of the most… Continue reading How to Customize Contact Form 7 for WordPress: Floating Labels

A Guide to Overriding Parent Theme Functions in Your Child Theme

If you’ve had any experience working with parent and child themes in WordPress, you’ll know that the template files in your child theme override those in your parent theme. For example, if your parent theme has a page.php file and you create a new one in your child theme, WordPress will use the one in the child… Continue reading A Guide to Overriding Parent Theme Functions in Your Child Theme

How to Style Wide and Full-Width Gutenberg Blocks in WordPress

The Gutenberg block editor for WordPress has changed how we create content within the CMS. But it’s also opened up some new possibilities on the front end as well. One of the more interesting developments in this area is the ability to add “full” or “wide” blocks to a page or post. This feature adds… Continue reading How to Style Wide and Full-Width Gutenberg Blocks in WordPress

How to Create a WordPress Child Theme

If you’re using a theme you downloaded from the free WordPress theme repository, or maybe one you’ve bought from ThemeForest, you may want to make some tweaks to it. Maybe you want to register a new font or add a new template file. Maybe you want to add some code from one of the tutorials or… Continue reading How to Create a WordPress Child Theme

Code a Burger Menu for Mobile Users in WordPress

What You’ll Be Creating If you want your site to be responsive (and who doesn’t?), then it’s important to make sure that your main navigation menu works well on small screens. Large navigation menus can take up too much space on a mobile phone, or if they don’t, they can be too small to read… Continue reading Code a Burger Menu for Mobile Users in WordPress

5 Most Clever WordPress Tweaks to Improve Your Site (Without Plugins)

WordPress is one of the best CMS out there for a number of reasons. Aside from being flexible and highly customizable, you can supercharge it using powerful plugins. Regardless of your goals for your website, you can be sure there’s a plugin for that. However, it’s always better to forego plugins and hard-code them into… Continue reading 5 Most Clever WordPress Tweaks to Improve Your Site (Without Plugins)

What Are the WordPress PHP Coding Standards?

What are the WordPress PHP coding standards? In this video from my course, Learn PHP for WordPress, you’ll learn all about the coding standards and why they’re important. The WordPress PHP Coding Standards What Are the WordPress PHP Coding Standards? You can find the full WordPress PHP coding standards in the official WordPress handbook. They’re… Continue reading What Are the WordPress PHP Coding Standards?

How to Hide WordPress Admin Toolbar From Your WordPress Site

A large number of websites are powered by WordPress and there are tons of different plugins and themes being developed for this powerful content management system. But just like everything it also has some defects that we’d like to change. The WordPress toolbar is one such design element that some users prefer to have in… Continue reading How to Hide WordPress Admin Toolbar From Your WordPress Site

How to Integrate SmoothState.js Into a WordPress Theme

In our previous tutorial, we used the History Web API within a static site to serve smooth page transitions. In this tutorial we’re going to take things to the next level, by applying what we learned in a WordPress website. There’ll be one crucial difference; we’ll leverage SmoothState.js instead of building our own from scratch.  SmoothState.js will: Request pages asynchronously (AJAX) and… Continue reading How to Integrate SmoothState.js Into a WordPress Theme

Kick-Start WordPress Development With Twig: Timber Image, Menu, and User

By now you have read about the basic concepts of using Twig through Timber, while building a modular WordPress theme. We’ve also studied block nesting and multiple inheritance with Twig, based on the DRY principle. Today, we are going to explore how to display attachment images, WordPress menus, and users in a theme with Twig… Continue reading Kick-Start WordPress Development With Twig: Timber Image, Menu, and User

Everything You Need to Know About WordPress Child Themes

A child theme is a set of styling guidelines and/or functions which are utilized to incorporate functionality or replace the appearance of an existing WordPress theme. Child themes can be modified without altering the original code of your theme, allowing you to make changes as small as changing a couple of colors, or as extensive… Continue reading Everything You Need to Know About WordPress Child Themes

How to Work With WordPress Comment Metadata

Throughout this series, we’ve looked at a number of the metadata APIs that are offered by WordPress. This includes the Post Meta API and the User Meta API. Today, we’re going to be rounding out the series by looking at the WordPress Comment Meta API. Note that this is that the final metadata API WordPress… Continue reading How to Work With WordPress Comment Metadata

How to Work With WordPress Post Metadata

In the first post in this series, I gave an overview of all of the various types of metadata offered by WordPress, where it’s kept, and what we’re going to be covering throughout this series.  Further, I defined what metadata is; its role within WordPress, and how it’s relevant to us as developers. But the… Continue reading How to Work With WordPress Post Metadata

How To Create And Customize A WordPress Child Theme

The WordPress platform is a magnet for those who want to take matters into their own hands, who want complete control over their websites and want to be independent in running them. WordPress does make it really easily to completely customize a website. If you have a bit of knowledge of HTMl, CSS and/or PHP,… Continue reading How To Create And Customize A WordPress Child Theme