Custom meta-box for all custom post types
Custom meta-box for all custom post types
Custom meta-box for all custom post types
For your first question: — Where do I have to put the »HTML for the term order metabox«? Take a look at the add_meta_box codex page, the example there shows you how to put a metabox on your posts admin pages. Regarding your second question: — Does the »JavaScript to make the above list sortable … Read more
Considering the comments and wasting a few more hours searching for a solution I came to the conclusion I have to review my plugin design. There are two promising approaches: Using a template file and provide a fallback. Providing a “shorttag” generator and make the user to create a post / page for each needed … Read more
It turns out the issue here is the foreach statement. I changed the loop from foreach ($taxonomies as $taxonomy) { to for ($counter=0; $counter < sizeof($taxonomy); $counter++) { as well as all relivant itirators so…. register_taxonomy( $taxonomy->singular_name, ‘book’, $tagArgs ); became register_taxonomy( $taxonomy[$counter]->name, $book, $args ); and all went well. I suspect this is a … Read more
How to make my taxonomy URL work?
Include attachments with a custom taxonomy in search
I solved this problem by putting everything into the init call and then calling a check on the tax.. to see if it was empty. I’m not convinced that this is the most elegant solution or efficient so maybe someone will correct or confirm what I have found as a solution.
You really should try to avoid using query_posts if at all possible. See When to Use WP Query vs Query Posts vs Get Posts Here is a pass through a loop using WP_Query: $args = array( ‘tax_query’ => array( array( ‘taxonomy’ => ‘region’, ‘field’ => ‘id’, ‘terms’ => $region_id ) ) ); $properties = new … Read more
‘Post_tag’ taxonomy tags don’t link to existing posts in CMS
try this… replace twentyfourteen_paging_nav(); with global $wp_query; $temp_query = $wp_query; $wp_query = NULL; $wp_query = $loop; twentyfourteen_paging_nav(); $wp_query = NULL; $wp_query = $temp_query;