Pagination for Custom Loops

There are different ways to create a pagination for WordPress posts in a loop:

  • Using next_posts_link() and previous_posts_links() functions
  • Using paginate_links() or get_the_posts_pagination() that allows to display numeric pagination.
  • In old times we also used plugins for that purpose, the most popular was WP-Pagenavi.

In this tutorial my goal is to show you how to create any kind of custom paginations for almost anything. For example did you know that do display page numbers in Appearance > Menus is also used paginate_links() function?

custom pagination in WordPress nav menus

3 Steps to Create AJAX Post Filters

How to Use Image Uploader in WordPress Admin Area

In this tutorial I am going to dive deep in WordPress media uploader functionality. By the way it is possible to implement not for only images but for any supported file types.

This is how it looks in WordPress admin area:

Image uploader field in WordPress option pages
Below in this tutorial I will also describe how to create a settings page like this.

Mailchimp API in WordPress

In this tutorial we are going to talk deeply about establishing connection with Mailchimp API using WordPress HTTP API functions.

In our code examples we are going to use wp_remote_get(), wp_remote_post() and wp_remote_request() functions. If you’re looking for cURL examples, here is another tutorial.

How to Sync WordPress User Registrations to Mailchimp

In this tutorial I will show you two different ways how you can sync WordPress user registrations to Mailchimp. The first way is more for developers, we are going to create API requests, the second one – for regular users, so all you have to do is just to install the plugin.

wp_schedule_single_event() – all about scheduling one-time events with working examples

With this function I open the new post series about WordPress Cron. I don’t want to create the common post about all the cron functions, so we will look at each function separately.

pre_user_query tutorial: hiding the user with the exact ID, hiding the users by the role, extending the user search

First of all you should know one important moment. There are two base user query action hooks:

  1. pre_get_users — it fires before WP_User_Query has been parsed and allows you to change some query vars like include, exclude, order, orderby etc.
  2. pre_user_query fires after