Category Archive: WordPress
Posts about WordPress
Proper usage of get_search_query()
This tutorial explains the two ways to properly use WordPress’ template tag, get_search_query(), depending on context. Note that the information provided in this post also applies to the similar tag, the_search_query().
WordPress Conditional Shortcodes via Ajax
This example builds from the conditional do_shortcode technique to evaluate shortcodes during Ajax requests.
WordPress Conditional Do Shortcode
Quick snippet to call and evaluate WordPress shortcodes conditionally, outside of their normal Post/Page context.
The Right Way to Include Google Fonts in WordPress
This tutorial explains the right (and wrong) way to include (aka enqueue) Google Fonts in your WordPress theme.
Update WordPress Post With Current Time
Here is a simple technique for updating WordPress posts with the current date and time. Useful for timezone/server transfers.
Find duplicate email addresses in WordPress
This tutorial explains how to find duplicate email addresses in your WordPress database. That way you can delete or modify as needed.
Get All User Email Addresses in WordPress
Putting together a mailing list? Here is an easy way to get all user email addresses from your WordPress database.
Disable WordPress Automatic Updates
In case you haven’t noticed, WordPress auto-updates its core files by default. Neat but not always desired. Here is how to disable auto-updates with a few lines of code.
Using WordPress Filter and Action Hooks
In this tutorial, we have two quick examples showing how to use WordPress filter and action hooks. First we’ll look at how to use filter hooks, and then action hooks.
Date and Time with PHP and WordPress
This post explains the difference between displaying the date and time with PHP vs. displaying the date and time with WordPress.
WordPress Get Category ID from Slug
Quick WordPress snippet for getting the category ID from the category slug.
Limit Characters in WordPress Navigation Links
Here is are two jQuery techniques to limit the number of characters in a string, applied to WordPress navigation links.