Today we are going to show you how to use acf_form to update custom user fields created with Advanced Custom Fields (ACF). We will create some custom fields using ACF then add the fields to a form on the front-end of the website. We will then demonstrate how to add, modify and save the custom […]
Author Archives: Roan Bradley
Add a logout button to a WordPress navigation menu
Today we are going to look at how to add a logout button to a WordPress navigation menu. In fact, we will be showing either a logout or a login button, depending on whether the user is currently logged in. As well as being convenient for all users, this may also be necessary if you […]
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 […]
Cache busting CSS and JS assets in WordPress
Today we are going to learn about cache busting CSS and JS assets in WordPress the easy way. Have you ever struggled to make sure updated versions of your CSS or JavaScript assets are being sent to users of your WordPress website? One way of solving this problem in the past, was to give each […]
Making an AJAX call to a custom WordPress plugin script
Today we are going to learn about making an AJAX call to a custom WordPress plugin. This method will allow you to make a call to your plugin using JavaScript. The call will be processed by a custom PHP function and a response returned. To make AJAX calls to a custom plugin script, that has […]
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 […]
Displaying custom post types on a WordPress blog page
Today we are going to learn about displaying custom post types on a WordPress blog page using the pre_get_posts hook. If you are using custom post types via a theme or plugin you may want to display one or more custom post types on your site’s blog page. Below I will show you how to […]
Hiding the Posts menu in the WordPress admin
Today we are going to learn about hiding the posts menu in the WordPress admin. We will remove the Posts menu item from the main menu, as well as the New Post menu item from the menu bar. If you do not want your admin users to see the menu link to create standard posts, […]