Questions tagged [register-taxonomy]

The tag has no usage guidance.

15 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
1answer
37 views

Why does a new taxonomy term get created when I assign an existing term to a post?

I've got a stumper... I've created a new taxonomy called Article Type. I created four values for it, as shown in this metabox: When I select the "Entertainment" term and update the post, something ...
1
vote
0answers
144 views

Custom Taxonomy isn't working from frontend post submitting

hi, i am working on a video sharing site project! I have Created a Template file where people can submit their post as video! Everything was working very good, but the custom Taxonomy ponstars isn't ...
1
vote
0answers
31 views

taxonomy tax-name archive

I am creating a taxonomy $labels = array( 'name' => $name->labels->name, //genre 'singular_name' => $name->labels->singular_name, //genre ...
1
vote
0answers
145 views

Combine multiple custom user taxonomy in single url

I have created custom user taxonomy for user and its working good. Reference guide:- http://justintadlock.com/archives/2011/10/20/custom-user-taxonomies-in-wordpress Bellow is structure of taxonomy ...
0
votes
0answers
15 views

Include CTP slug to custom taxonmy URLs

I am trying to rewrite a custom taxonomy url to include the CTP slug to which the taxonomy is assigned to. For example: https://www.example.com/motors/taxonomy-slug/ Where motors is the CPT slug ...
0
votes
0answers
48 views

wordpress does not see the correct custom taxonomy hierarchy

I have created custom post type - 'portfolio' with custom taxonomy designating the category and subcategory. I have an example structure: - main_category: -- subcategory_1 -- subcategory_2 The ...
0
votes
0answers
167 views

Custom Taxonomy Not Being Recognized by is_tax()

I created a taxonomy.php template that works fine for the default stuff, but I realized my theme has default'd to index.php when trying to load a custom taxonomy I created (IE: open website.com/age/...
0
votes
0answers
460 views

URL with Hierarchical Taxonomies and same slug for all terms and sub-terms

I have a 'house' cpt and a 'locations' hierarchical custom taxonomy. Permalinks are set to /%category%/%postname% The terms in the hierarchical taxonomy are like: usa >> new-york germany >> berlin ...
0
votes
2answers
79 views

Is there a way to re-order the Custom Taxonomy drop-down on a Custom Post listing page?

I have used register_taxonomy() with 'show_admin_column' => true successfully to get a drop-down on my custom post type listing page. The drop-down displays the terms in ID order by default. ...
0
votes
0answers
33 views

Taxonomy Terms That Don't Exist Display Results

I am working on a custom post type with an archive at: https://www.bowlertransmissions.com/mmc/ If you click one of the results years, such as '2016' you will then get to a page with two buttons to ...
0
votes
0answers
96 views

set_object_terms for custom taxonomy in custom post type - not working

All I want is to set a custom posts taxonomy. Here is the taxonomy "lostitem" I registered for the custom post type "verloren" function create_taxonomies(){ $labels = array( 'name' => _x('Lost ...
0
votes
1answer
275 views

Custom Taxonomy index/archive hierarchy

I have built a custom taxonomy, say, cars. The URL looks like this: http://www.example.com/cars/elantra/ and this is working fine by using the file taxonomy-cars.php as the template. Now, I would ...
0
votes
0answers
128 views

Sort Taxonomy List by Custom Values

I'm trying to make the order of taxonomies adjustable. I've already got the drag & drop working and can put those values to the database. I just don't know how to sort the taxonomy list by other ...
0
votes
0answers
384 views

add_action priority and taxonomy used in plugin

I try to register my taxonomy in my plugin and use it after. So far I have done: function custom_taxonomy() { $labels = array( ... ); $args = array( ... ); ...
0
votes
1answer
697 views

Showing custom post type categories in the menu

here is my custom post type and category: //Register nav register_nav_menus( array( 'main_nav' => 'Main navigation' ) ); //Custom post types add_action( 'init', 'create_post_type' ); function ...