Custom Taxonomy type in nav menu
Custom Taxonomy type in nav menu
Custom Taxonomy type in nav menu
You could use this plugin instead of trying to use the description field. It’s very lightweight and uses drag-and-drop ordering on the admin end. Then you just orderby => term_order when grabbing your terms.
Get posts that have custom post type value
Use get_the_terms( $post, $taxonomy ): $worktypes = get_the_terms( get_the_ID(), ‘worktyp’ ); var_export( $worktypes ); You can also use … get_the_term_list( $id, $taxonomy, $before=””, $sep = ”, $after=”” ); … to get a formatted output. Example.
I believe I found the solution here: http://codex.wordpress.org/Function_Reference/wp_set_object_terms wp_set_object_terms( $post_id, $terms, $taxonomy, $append ); wp_set_object_terms( 4, $cat_id, ‘example_product_cat’); This is still placed inside of the install.php file. If there is a better solution, please add! Thanks. Roc.
How to include child terms within parent?
Create taxonomy archives, not pages. Create three separate files called taxonomy-kind-websites.php taxonomy-kind-graphics.php taxonomy-kind-programming.php Displaying the items/posts as a list is pretty simple, eg <ul class=”my-posts”> <?php while ( have_posts() ) : the_post(); ?> <li><h2><a href=”https://wordpress.stackexchange.com/questions/102609/<?php the_permalink(); ?>” title=”<?php the_title_attribute(); ?>”><?php the_title(); ?></a></h2> </li> <?php endwhile; ?> </ul> You may also need to add the following … Read more
Multiple Taxonomy in URL/Query – No Custom Post Type
I have copied my plugin file to a new one .php file and deactivated the old one / activated the new one. Then everything worked successfully. I need to mention that I changed the names of the taxonomies from “Kind” to “Stuff” so I suppose there was an error or something in the database.
How to save an integer as taxonomy term?