Display custom post taxonomies
the_tags is only for the post_tag taxonomy, use the_terms to output custom taxonomies with a similar format: the_terms( $post->ID, ‘tagevents’, ‘<span class=”tags-button”>Tags : ‘, ‘ ‘, ‘</span><br />’ );
the_tags is only for the post_tag taxonomy, use the_terms to output custom taxonomies with a similar format: the_terms( $post->ID, ‘tagevents’, ‘<span class=”tags-button”>Tags : ‘, ‘ ‘, ‘</span><br />’ );
Run get_terms like this: var_dump(get_terms(‘category’,array(‘hide_empty’=>false))); And then like this: var_dump(get_terms(‘category’)); You should be able to infer what is happening. The first should return the zero based array you expect, with neatly numbered keys. The second does not. The only difference being the hide_empty argument. If you really must have a zero based array just pass … Read more
Can you use any plugin for this url ? Or Made page or post or category for this URL ? What to do ? How you generate this url ? If you are using any plugin, you can see plugin functions.php file.
Sorry I forgot you can do this. Anyway the problem was that author was a reserved name. I have no idea why it worked for s_ha_dum though, but changing the name would be the safest option.
What’s the proper WordPress URL for the template of my custom taxonomy?
Consider instead a single, hierarchical taxonomy, where the top level terms are brands such as Nike/Adidas/etc, and child terms are models. Otherwise you face a scaling issue, as the number of brands increases, so do the number of taxonomies, and so does the complexity of the code behind the scenes.
Taxonomy to WordPress Permalinks of custom post type
It was a really silly issue. The same slug was used by a tag, so here was the problem. When I deleted the tag the problem disappeared.
try this: Put this code in your search form: <form method=”get” id=”searchform” action=”<?php bloginfo(‘url’); ?>/search”> <?php $args = array( ‘public’ => true, ‘_builtin’ => false ); $output=”objects”; $operator=”and”; $taxonomies = get_taxonomies( $args, $output, $operator ); $my_tax_array = array(‘your_taxonomy_name1′,’your_taxonomy_name2′,); //make array of your taxonomies echo “<select id=’my_select_taxonomy’ name=”my_select_taxonomy”>”; echo “<option value=”0″>—-</option>”; if ( $taxonomies ) { … Read more
Custom taxonomy displayed in search results