What is actually taxonomy in wordpress? How and where exactly I can use taxonomy. I have read many google search about it but need someone to just explain in little simple language.
67740
I've been reading the codex for WordPress closely and am confused about the vague definitions between what a Taxonomy is and what a Category is. For that matter, term is also a word that is used in the description of Taxonomies, but seems used in a manner that hints that it isn't solely limited to a Taxonomy.   Both are described as a way to classify and group together posts. I do understand that Taxonomies are a more general form of categories, but how exactly do they relate to each other?   Is there a subtle difference I'm just not picking up on?
43594
I want to display custom type posts from a custom taxonomy category so I did this: $news = get_posts( array(     'posts_per_page' =&gt; -1,     'post_type' =&gt; 'news',     'tax_query' =&gt; array(             'taxonomy' =&gt; 'news_category',             'field' =&gt; 'term_id',             'terms' =&gt; 82,         ),     ) );  $postslist = get_posts( $news );      foreach ($postslist as $crap) { ?&gt;      &lt;a href=&quot;&lt;?php $crap-&gt;title; ?&gt;&quot;&gt;&lt;?php $crap-&gt;title; ?&gt;&lt;/a&gt; &lt;?php }?&gt;  I get nothing from this. Why is that? I double checked the category ID and its correct. Also, I used the Custom post types plugin to register the custom taxonomy.
109288
I wish to create a taxonomy where the administrator users limit which terms can be tagged.    Suppose I have a vocabulary containing the following terms:   Football Golf Snooker   I want the tag autocomplete to show the tags that can be used. If I typed "Foo", the autocomplete should show "Football"; if I typed "Basketball," the autocomplete would not show anything, the node would submit, but no term is created.   Is this possible?
36377
Is [bugs] a tag with one question, or a tag synonym? Can't tell... can you? This is a real problem when trying to manage tags.  Please differentiate tag synonyms in the list, possibly with a different border.
88053
Today I needed to change the arguments on a custom taxonomy that was already registered by a . Specifically I wanted to set the show_admin_column argument to true and change the rewrite slug so that it wasn't just the taxonomy slug. In this case, it was a "People" post type with a "People Category" custom taxonomy.  I was surprised this wasn't asked before, so here's a question and answer.
4944
I am having trouble working with WordPress rewrite rules, and could use some help.  I have a custom post type called _shows_.  All shows have a single custom taxonomy category _show-category_. A _show_ will never have more than one _show-category_.  I would like my urls to route in this manner:  www.mysite.com/shows/  =&gt;  archive-shows.php  www.mysite.com/shows/%category%/ =&gt; taxonomy-show-category.php  www.mysite.com/shows/%category%/%postname%/ =&gt; single-shows.php   So as a real world example, lets say we have a _show-category_ "Foo" and a _show_ post titled "Bar" that has "Foo" as it's _show-category_. I would expect my WordPress app to look like this:  www.mysite.com/shows/foo/ =&gt; shows all posts under the foo category www.mysite.com/shows/foo/bar =&gt; shows the indivual post   I try to avoid plugins when possible, but am open to any solution.
98618
How do I load an image from a taxonomy custom field into a custom location on the taxonomy page template?  It's easy to accomplish it when the image is in a node. The following code works for images, but it doesn't work for taxonomy pages.      {{ file_url(node.field_reference_background.entity.uri.value) }}   How can I accomplish the same for taxonomy pages?
93359
I make use of the view: "taxonomy term". Is there an easy way to also show the children of a term, next to the nodes beloging to this term?  Example:  Cars - Volvo --- Family_cars --- Sports_cars - Honda --- Parts --- ... Trucks - ...   When you see the "cars" page I want to show all articles about cars (but not about Volvo, Honda, ...) AND I want to show the children (Volvo, Honda, ...) When you click one of these I want to show all the articles belonging with them, again with their children.
64366
I've been combing this site and google for the answer and I've come up completely empty.  Basically I want to do exactly what  asks, but I need a hierarchical taxonomy.  The answer given in that post works great, but only with a single level taxonomy.  Is it possible to do what I want?  I've tried a million things, but none work, at best I can get the right permalinks but they come up 404.  To visually illustrate what I want:  /basename/ - ideally a page, but I think this will cause a permalink collision     /basename/top-cat/ - top parent custom taxonomy archive     /basename/top-cat/child-cat/ - child cat custom taxonomy archive      /basename/top-cat/child-cat/grandchild-cat/ - grandchild cat custom taxonomy archive     /basename/top-cat/child-cat/grandchild-cat/post-name/ - my custom post type post   You can do this fine with the built in posts and categories, how do you do it with custom taxonomies and custom post types?  I know that you need to use 'rewrite' =&gt; array( 'slug' =&gt; 'tax-name', 'with_front' =&gt; true, 'hierarchical' =&gt; true ), to get hierarchical slugs, which works fine on the archive pages, but the custom post type posts come up 404.  If I remove the 'hierarchical' =&gt; true part then the posts work, but I lose the hierarchical urls (only /basename/grandchild-cat/post-name/ works).  So, any solutions?  Thank you so much, this has been driving me nuts for about 3 weeks now.
50647
Is there a way to limit search to post titles? I know I can modify query.php core file but there must be a way to do it with hooks right?  Thanks in advance!
11669
WordPress allows adding descriptions to Custom Post Types whenever it's registered. ( . I would like to output that title on the Admin Landing Page ( View All Post Type ) preferably underneath the title. I've looked into /wp-admin/edit.php but I'm not sure if the filter presented is usable in this case ( and thus it may not be possible to do ).   is where it looks like the actual title gets set. Is is possible / is there a way to filter into it and add my post type description?
90157
I am trying to figure out how to use views to list out ALL my taxonomy terms that are grouping node titles. Example:  Taxonomy Term 1 - Node Title 1 - Node Title 2  Taxonomy Term 2 - Node Title 3  Taxonomy Term 3 -Message: There are currently no Node titles at this time, please check back  Taxonomy Term 4 - Node Title 4 - Node Title 5
24291
I'm working on a WordPress site for my band and I'd like to mark every 3rd post on our blog page to have a special class applied to it, anybody have any pointers on how to achieve this? Any help is very very appreciated, thanks! rock n roll.
97598
I can select posts via my custom taxonomy as explained . But I am not sure, how I have to set up the tax_query if I want to get only posts which have no relation in the custom taxonomy at all. Any suggestion?
102247
I have a content type article and when editing an article there should be a field where you can select a taxonomy term of a specific vocabulary.   When viewing the article it should show a list of titles of all articles associated with the selected taxonomy term. I know how to make a select field and also a view to show the titles. But how do I send the selected term to the view and how do I display the view in the article?
44970
Made this custom taxonomy that'll control layout on single posts, basically I want to add two options, Layout 1 and Layout 2.  // Register Custom Taxonomy function custom_taxonomy() {      $labels = array(         'name'                       =&gt; _x( 'Layout', 'Taxonomy General Name', 'text_domain' ),         'singular_name'              =&gt; _x( 'Layout', 'Taxonomy Singular Name', 'text_domain' ),         'menu_name'                  =&gt; __( 'Taxonomy', 'text_domain' ),         'all_items'                  =&gt; __( 'All Items', 'text_domain' ),         'parent_item'                =&gt; __( 'Parent Item', 'text_domain' ),         'parent_item_colon'          =&gt; __( 'Parent Item:', 'text_domain' ),         'new_item_name'              =&gt; __( 'New Item Name', 'text_domain' ),         'add_new_item'               =&gt; __( 'Add New Item', 'text_domain' ),         'edit_item'                  =&gt; __( 'Edit Item', 'text_domain' ),         'update_item'                =&gt; __( 'Update Item', 'text_domain' ),         'separate_items_with_commas' =&gt; __( 'Separate items with commas', 'text_domain' ),         'search_items'               =&gt; __( 'Search Items', 'text_domain' ),         'add_or_remove_items'        =&gt; __( 'Add or remove items', 'text_domain' ),         'choose_from_most_used'      =&gt; __( 'Choose from the most used items', 'text_domain' ),         'not_found'                  =&gt; __( 'Not Found', 'text_domain' ),     );     $capabilities = array(         'manage_terms' =&gt; 'foobar',         'edit_terms'   =&gt; 'foobar',         'delete_terms' =&gt; 'foobar',         'assign_terms' =&gt; 'foobar'      );     $args = array(         'labels'                     =&gt; $labels,         'hierarchical'               =&gt; true,         'public'                     =&gt; true,         'show_ui'                    =&gt; true,         'show_admin_column'          =&gt; false,         'show_in_nav_menus'          =&gt; false,         'show_tagcloud'              =&gt; false,         'capabilities'               =&gt; $capabilities,     );     register_taxonomy( 'Layout', array( 'post' ), $args );  }  // Hook into the 'init' action add_action( 'init', 'custom_taxonomy', 0 );   Capabilities are set to invalid values to stop terms from being edited, but I can't get wp_insert_term working.  Adding two terms to my custom taxonomy can't be so hard, right?  Using this to insert a term doesn't work, although if I changed my custom taxonomy name to 'category', ie WP default it works just fine. What gives?  function example_insert_category() {     $parent_term = term_exists( 'layout' ); // array is returned if taxonomy is given $parent_term_id = $parent_term['term_id']; // get numeric term id     wp_insert_term(         'Example Category',         'layout',         array(           'description' =&gt; 'This is an example category created with wp_insert_term.',           'slug'        =&gt; 'example-category'         )     ); } add_action( 'after_setup_theme', 'example_insert_category' );
90418
Is there a hook I can use that when a post is created or updated it goes back to the list/table page of all the posts. If it is also possible to target a post type as well that would be cracking.  It's a really silly request I know and have argued the toss about it but wanted to make sure it was achievable if not very user friendly.  Steve