Get permalink by title or slug You would normally grab a page link via its ID but in my case where...
Search only in custom post types Limit the search query to a custom post type with this small snippet. We use...
Change login cookie expiration date This function changes the expiration date so your login cookie does not expire every 2...
Add categories and tags automatically to every post If you want to pre-add custom categories and tags to every post this function snippet...
Add title attribute to next_post_link This function adds the title and rel attribute to your internal navigation structure links. Note:...
Redirect to homepage after logout When wp_logout_url function is called without a $redirect value this function will help. You...
Change login box message Do you want to change the html on your wp-login.php page? Easy with this snippet....
Conditionally use SSL connections This function can easily be modified to use conditional tags and force SSL on these...
Exclude posts from search by taxonomy ids A nifty function to exclude posts which contain specified term ids. Now thats one hell...
Bad word filter for search queries posts_where jumps into the query and modifies it similar to pre_get_posts. We limit it to...