Highlight menu item of wp_nav_menu on CPT The code below finds the menu item with the class "-menu-item" and adds another “current_page_parent”...
improve query with transients saving db requests Here is an example how to use transients in your WordPress loop for a portfolio...
Add excerpts to pages By default WordPress PAGES do not have an excerpt field shown on your admin's edit...
Require a featured image for posts The following code can be used to make the post thumbnail a requirement. When you...
WooThemes Testimonials: Modify content to use excerpt Modify the woothemes_testimonials_content filter and replace post_content with post_excerpt.
Generate a random password function By using this code snippet you can generate a random password with in this example...
Add plugin settings link to plugins list table Add a link to your plugin's settings page on the plugin page. A handy quick...
Add admin notices on edit screen Create custom admin notices with this function. I used the EDIT parent_base to use it...
Hide update notice to all but admins Are your authors and contributors annoyed by the update notice when a new WP version...