Error 404 in Custom taxonomy with pagination
Error 404 in Custom taxonomy with pagination
Error 404 in Custom taxonomy with pagination
I’m not totally sure what you’re asking, but if you’re asking about the template that would be used by the term, it would be taxonomy-slug-term.php. So for your taxonomy, the default template for the taxonomy would be taxonomy-argomento1.php Each of the term archives would use this same template, unless they have a specific template specified. … Read more
It might be because you are using reserved term name as first argument; ‘categories’ is wordpress core taxonomy and you should use something else like ‘ph_categories’. After that you will have to add those terms again. Reference: Codex
From the above function you queried all the taxonomies. Not specific. I mean it’s not only for your custom taxonomy. Working for the whole.
I would recommend looping thru your query result ($the_query in your example) multiple times, pulling out the matching posts each time. Use $the_query-rewind_posts() after each pass to restart your loop.
Force WordPress to only match URL in category
WordPress core (as expressed by involved people on multiple occasions) strongly discourages sort by terms. It sees terms as exclusively grouping mechanism, with no ordering capabilities implied. So in your specific case WP would understand that there are different directors, that there are groups of shows done by those directors, but won’t at all understand … Read more
Okay i found that at this point the taxonomy were not properly linked?Even if i have registered everything well,and i have even tried register_taxonomy_for_object_type.BTW Page not found taxonomy custom post type here i’ve found my answer with this loop in functions.php
The function you want is get_the_terms. $terms = get_the_terms( get_the_ID(), ‘equipment_type’ ); if ( $terms && ! is_wp_error( $terms ) ){ foreach ( $terms as $term ) { echo $term->name; } }
get_tags is just a wrapper around the more general taxonomy function get_terms. So you’ll get the result you need with this: function execute_taxography() { $wpbtags = get_terms( ‘books’ ); $output.= ‘<div class=”grid”><div class=”taxography-grid”><ul>’; foreach($wpbtags as $tag) { $output.= ‘<li class=”item”><a href=”‘. get_term_link($tag->term_id, ‘books’ ) .'” style=”background-image: url(\’http://localhost/wordpress/wp-content/uploads/tags/’ . $tag->slug . ‘.png\’)”><span class=”count”>’. $tag->count .'</span><span class=”taxography-name”>’. … Read more