Questions tagged [register-taxonomy]

The tag has no usage guidance.

19 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
1answer
43 views

Custom taxonomy forms for user profile

I followed this excellent tutorial made by Justin Tadlock . I can't update profile, it doesn't save to user profile : add_action( 'init', 'create_profession_tax' ); $post_type = get_post_type(); ...
1
vote
1answer
41 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
172 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
35 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
193 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
18 views

How to disable the use of certain words in categories

I would like to "censor" the creation of some categories, meaning, I don't want that some terms/words could be used when creating categories. Can anyone help? Thank you all.
0
votes
0answers
38 views

Woocommerce Product don't return custom taxosonomy when using REST api

I created a custom taxonomy for woocommerece product. It's working fine in wordpress. but when I try to fetch it through REST (Javascript), it's missing. All other properties are returning but not ...
0
votes
0answers
48 views

How to Create taxonomy using 'null' for $object_type?

I tried creating a taxonomy using null for object type so that I can enable it for my suitable post types. add_action( 'init', 'create_pricat' ); function create_pricat() { $labels = array( ...
0
votes
0answers
60 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
214 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
663 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
144 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
35 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
128 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
326 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
133 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
539 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
847 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 ...
0
votes
1answer
24 views

Single and Archive Pages with Custom Post Type

I have a custom post type // Set other options for Custom Post Type $args = array( 'label' => __( 'document', 'ecse' ), 'description' => __( '...