Category: Snippets

How To Display Conditional Login Or Logout Links In WordPress

  In this example, we’re adding custom conditional links to a mega menu depending on whether the user is logged in or not, and adding… View More

WordPress wp_link_pages Pagination Examples

How To Programmically Add <!–nextpage–> To WordPress Template

The short answer is that you can’t programmically add <!–nextpage–> to your single.php template or custom file. But there is a fairly easy workaround using… View More

How To Find Duplicate Post Meta In WordPress

To locate and compare all duplicate postmeta rows in WordPress, use phpMyAdmin to run the following query:   select T1.post_id, T1.meta_key, T1.meta_value, T1.meta_id, T2.post_id, T2.meta_key,… View More

How To Disable The WordPress Register Text And Registration Page

If you are using a plugin or other method to register users other than the standard registration page, you can disable the “Register” text on… View More

How To Display A Custom Image Field Uploaded Via WordPress Media

If you have created a custom field to upload images using WordPress media browser, this custom field is added to a post as an attachment. … View More

Displaying Images Using A Custom Non-Media Field In WordPress

If you are using a custom field to enter the URL of an image whether it is located on your server or externally, and it… View More

How To Replace The WordPress Logo On Login With Your Own Logo

The WordPress logo on the login page can be confusing to your users, who would naturally expect imagery that matches your website.  To replace the… View More

How To Add Custom Menu Items And Variables To WordPress Menus

  In order to add custom menu items to a wordpress menu, we need to define our custom menu item as well as where that… View More