Custom taxonomy huge list not loading properly in select box

Just like i commented , this will create the dropdown if it doesn’t exists and will save it in the database remove_meta_box(‘tagsdiv-book_author’, ‘book’, ‘normal’); add_meta_box(‘custom-taxonomy-author-dropdown’,’Author’,’author_dropdowns_box’,’book’,’side’,’high’); function author_dropdowns_box( $post ) { wp_nonce_field(‘custom-author-dropdown’, ‘author-dropdown-nonce’); echo “Author:”; echo “<select id=’bauthor’ name=”bauthor[]”>”; echo “<option value=”0″>None</option>”; $options = get_option(‘bauthor_dropdown’); if ($option !== false){ echo $options; }else{ $options=””; $terms = get_terms( … Read more

List one post only from each subcategory using get_posts?

I’m not sure this is the best way but it works: //First get all child categories if ‘big_corporates’ $categories = $args = array( ‘parent’ => $big_corporates_ID, ‘orderby’ => ‘name’, ‘order’ => ‘ASC’, ‘hide_empty’ => 1, ‘taxonomy’ => ‘projects_category’ ); //then loop over them and get the first post of each: echo ‘<ul>’; foreach ($categories as … Read more

Catch all taxonomy template

I had a similar issue. I ended up using the archives.php and had a little more luck with that. It would see and use the archives.php (and the archives-video.php I created from it), but would not see taxonomy.php or taxonomy-videos.php or category.php like it should.

wp_set_post_terms example?

Name your fields like car_specs[taxonomy_name], then within “save_post” just do: foreach($_POST[‘car_specs’] as $tax => $term) if(taxonomy_exists($tax)) // && term_exists($term, $tax) wp_set_post_terms($post_id, $term, $tax); Personally I wouldn’t use WordPress for a auto classifieds type of website. There are PHP frameworks out there better suited for building such sites

register_taxonomy for both ‘Post’ & ‘Page’

The second parameter of register_taxonomy can accept a string or an array of post types, so simply add the page post type to that array, like so: function qc22_build_taxonomies() { register_taxonomy( “fullscreen-tags”, array( “fullscreen”, “page” ), array( “hierarchical” => true, “label” => __( “Fullscreen Tags” ), “singular_label” => __( “Skill Type” ), “rewrite” => array(‘slug’ … Read more

Query Results not being displayed please help

In your loop you only call the title using the_title if you want to display the terms of the custom taxonomies you need to call them and the easiest way would be to use get_the_term_list for each taxonomy : while ( $my_query->have_posts() ) : $my_query->the_post(); echo ‘<li>’; the_title(); echo get_the_term_list( $post->ID, ‘location’, ‘Location: ‘, ‘ … Read more