Creating pages automatically on plugin activation in WordPress

If you are creating a WordPress plugin, often times you will need to reference a specific page in order to display some kind of data or other information. Although it is possible to manually create pages in WordPress, required by a plugin, creating pages automatically on plugin activation will ensure your plugin works out of …

Handle POST and GET requests in WordPress using admin-post.php

Today we are going to learn how to handle POST and GET requests in WordPress using custom functions and admin-post.php. There are various ways to process and handle POST requests in WordPress. You could use a page template or even a custom script. When using a custom script, you do not have access to WordPress …

Sorting WordPress posts using multiple meta keys

Today we are going to learn about sorting WordPress posts using multiple meta keys. The method uses WP_Query and can be used in page templates, shortcodes functions, custom plugin scripts and a variety of other ways. Occasionally it may be necessary to custom order posts using multiple meta keys. This can be achieved using the …