Search the Wiki

Viewing 231 to 240 of 337 items

Build or add to a query in WordPress

Get your queried vars from the original query. http://codex.wordpress.org/Function_Reference/WP_Query $query or $query_vars Merge that with your own array, then pass that array into query_posts. Try this for the args array. The array_filter removes any empty/false/null values from the query_vars array when merging..

0

Feature image is missing in the WP admin sidebar

For me, “Featured Image” was still missing from the Screen Options tab, even after clearing the cache and restarting the browser. In my case the problem was related to having a WordPress 3.2 Multisite install. With this setup, the Media upload buttons must be checked in Network Admin to enable the featured image meta box  Full Article…

0

Check If a Post has a Term from a specific Custom Taxonomy

See this page for the original source: http://alex.leonard.ie/2011/06/30/wordpress-check-if-post-is-in-custom-taxonomy/ As of WP 3.2 – there’s no core conditional function for checking whether a post belongs to a taxonomy term. A bit of searching around found this WordPress Support forum post by Justin Tadlock explaining how do check against a specific taxonomy. I’ve expanded this function a little bit  Full Article…

0

How to handle multiple feature images per post

There is a great plugin for this: http://wordpress.org/extend/plugins/multiple-post-thumbnails/ These are the bits of code needed to use the plugin. I add this code to the functions file. It sets up new feature images and assigns custom sizes for them if necessary: Then I use this code in my template files to display the new selection  Full Article…

0