How to Export Posts From Your WordPress Site

Looking to move your WordPress posts to another WordPress site or even a new platform? Not sure how to export specific posts on your WordPress site? WordPress’s export posts feature allows you to quickly export posts of your choice.  All your blog posts an be exported from the WordPress dashboard. If you need to export… Continue reading How to Export Posts From Your WordPress Site

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

Creating a Custom User Role in WordPress

When building a website with a CMS, flexibility is always welcome. Thankfully, WordPress has more than its share, with themes and plugins that allow us to create a highly-custom experience. But its flexibility goes beyond just those extra things we can install. It’s actually baked right into the core of the software. The ability to… Continue reading Creating a Custom User Role in WordPress

How to Add a Drop-Down Menu in WordPress

WordPress features a built-in menu management system that makes it easy to add menus to your website. However, as you add more and more pages, posts and other miscellaneous content, it may become impossible to include every destination in your standard menu bar.  In these scenarios, you can provide easy access to every section of… Continue reading How to Add a Drop-Down Menu in WordPress

How to Code Multiple Loops While Only Querying the Database Once

I’m a big fan of the WP_Query class: I use it in many of my client sites to query and output content in custom ways. If you want to run multiple loops on a page, the easiest way to do it is to run WP_Query each time you need to run a loop. But there… Continue reading How to Code Multiple Loops While Only Querying the Database Once

WP_Query Arguments: Status, Order, and Pagination

In this part of the series on Mastering WP_Query, you’ll learn about some of the arguments you can use with the WP_Query class, namely those for status, order, and pagination. You can use these arguments to fetch scheduled posts from the database, to query attachments, to amend the way posts are ordered and what they’re… Continue reading WP_Query Arguments: Status, Order, and Pagination

Posts, Pages and Post Types

In this part of this series on WP_Query, you’ll learn how to use WP_Query to query for posts, pages and custom post types. You can query for specific posts and pages or you can run a query to return posts of one or more post types. A Recap on How Arguments Work in WP_Query Before… Continue reading Posts, Pages and Post Types

Migrating Your WordPress Database: A Database Primer

When it comes to working with WordPress-based projects, arguably one of the most frustrating or tedious aspects of deployment is actually getting the databases across your environments in-sync with one another. Sure, there’s something to be said for using test data in development, user data in staging, and actual data in production, but there’s no… Continue reading Migrating Your WordPress Database: A Database Primer