Tag author
WordPress Conditional Tags Cheat Sheet With Examples
Conditional tags are functions that return true or false depending on the page being viewed. Use them to show or hide content, or to load scripts only where they are…
How To Run Safe Database Queries In WordPress With $Wpdb
The global $wpdb object lets you query the WordPress database directly. Use it when the standard functions are not enough, and always use $wpdb->prepare() to protect against SQL injection.
How To Add Content Before Or After Posts With The The_Content Filter
The the_content filter runs every time WordPress prints the content of a post. Hook into it to add a call to action, an author box, an ad or any extra…
How To Change The Excerpt Length And Read More Text In WordPress
WordPress shows 55 words in excerpts by default and ends them with […]. Two filters let you change both.
How To Create A Custom Loop In WordPress With Wp_Query
WP_Query lets you fetch posts with your own rules, like a specific category, post type or number of items, and display them anywhere in your theme.


