Tag query
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 Create Custom Urls In WordPress With Add_Rewrite_Rule
Rewrite rules map a pretty URL, like /deals/summer-sale/, to a query that WordPress understands. Use them when you need URLs that do not belong to a normal page, post or…
How To Add Custom Columns To The Posts List In The WordPress Admin
You can add your own columns to the list of posts, pages or custom post types in the dashboard, for example a thumbnail, a price or a custom field. Two…
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…


