Terms not appearing in wp_dropdown_categories

It could be that it won’t show empty categories, categories that has no posts attached to them. Try to change $args = array(‘taxonomy’ => ‘category’); to $args = array(‘taxonomy’ => ‘category’, ‘hide_empty’ => 0);

Taxonomy order exception for specific term

Here is the example of get_terms in the Codex: $terms = get_terms(“my_taxonomy”); $count = count($terms); if ( $count > 0 ){ echo “<ul>”; foreach ( $terms as $term ) { echo “<li>” . $term->name . “</li>”; } echo “</ul>”; } Lets say there was an ‘other’ term in my_taxonomy. To place it at the end … Read more

Override Taxonomy Template

Take a look at the Codex: taxonomy-{taxonomy}-{term}.php – If the taxonomy were sometax, and taxonomy’s term were someterm WordPress would look for taxonomy-sometax-someterm.php. In the case of Post Formats, the taxonomy is ‘post_format’ and the terms are post-format-{format}. i.e. taxonomy-post_format-post-format-link.php taxonomy-{taxonomy}.php – If the taxonomy were sometax, WordPress would look for taxonomy-sometax.php taxonomy.php You registered … Read more

Linking from CPT page to taxonomy.php

You can create a taxonomy-people_categories.php or a more general taxonomy.php (which will display all your taxonomies in this category – excluding post categories) – please see Taxonomy Templates / Template Hierarchy. As far as a what you need to display your posts, once you have the taxonomy-people_categories.php created you can just run the normal WordPress … Read more

How Can I Change The Tax Query For The Main Loop For Taxonomy Archives?

@birgire answer is fine (+1 from me), however $query->tax_query->queries can contain more than one taxonomy, and $query->tax_query->queries[0] can be the query for another taxonomy. So, if you want to set ‘include_children’ to false (note that it is a boolean argument) on the taxonomy ‘TAXONOMY NAME’, then you should be sure that you act on right … Read more

How to get custom field value in frontend for taxonomy

I would suggest to use update_term_meta() and get_term_meta() as they were introduced in WordPress 4.4. This would help to keep your wp_options table smaller. But either way, you need to know the ID of the term in the “Frontend”. Using Term meta you would need it: $term_meta = get_term_meta( $term_id, ‘series_images’, true ); Using your … Read more

Way to bulk make all my tags lowercase?

I would highly suggest that you use CSS to do this, as mentioned per other answer. Still, if you need to update the database due to some technical business, here’s the way to go. First, we will try and fetch all the tags using the get_terms() function, then we will update everyone of them using … Read more