taxonomy change to post/page type
taxonomy change to post/page type
taxonomy change to post/page type
Hiding a tag from display
Custom Titles for Multiple Tag Taxonomy Page
Never done it through direct coding. I use Advanced Custom Fields for this. Any type of custom field can be shown there, text, image, checbox, etc. And you have to set the location rule to be the Taxonomy screen. Category screen with custom fields: Documentation on how to retrieve the data.
is there a hook filter to get custom fields for taxonomy name instead of the default field?
I don’t think there’s a way you can setup the arguments such that you can get all children of a term and that term in one call, so you’ll probably just have to tack on the parent as a separate call. Using get_terms for the children, then get_term. $parent_id = 100; // set as appropriate … Read more
This isn’t possible, you can’t safely/reliably query the internals of meta value strings that way, and you can’t use it as a form of indirection: You can query for substrings or for whole values, but you can’t query the internals of serialised PHP values without major performance reliability and consistency issues but if you could, … Read more
You can’t order by taxonomy terms, the very concept breaks down when you try to handle posts that have multiple terms in a taxonomy. You may know that only 1 term will ever be selected but WP_Query isn’t built that way. Instead, keep your taxonomy so that you retain all the performance/theming/Admin UI benefits, but … Read more
I found the solution thanks to answer this question: Specify number of posts in my ‘tax_query’ I wanted to show the posts for ‘futbol’ within the ‘tipo_deporte’ taxonomy: <?php $args = array( ‘posts_per_page’ => 2, ‘tax_query’ => array( array( ‘taxonomy’ => ‘tipo_deporte’, ‘field’ => ‘slug’, ‘terms’ => array(‘futbol’), ) ) ); $query = new WP_Query( … Read more
You have at least 3 ways of accomplishing this. Option 1 The easiest is to change your permalink structure to “Post Name”, and then create your landing pages with the slugs you want. So, your slug for york would be “trainers-in-york”. Option 2 If you absolutely must modify the url, you can use add_rewrite_rule to … Read more