get_post_terms not working as expected
I have a custom post type called “Fruit” and under this I have a hierarchical taxonomy called, “Fruit Categories”
I have a custom post type called “Fruit” and under this I have a hierarchical taxonomy called, “Fruit Categories”
I’m trying to make a page on my WordPress website to display all kinds of food through 26 loops.
I’m building an inventory system where inventory items have their own page but where standard WordPress post post types can also be tagged with these inventory items. As far as I understand, this means I must implement both a custom post type (inventory) to provide each item’s page and a custom, non-hierarchical taxonomy (inventory_item) to represent the relationships between posts in the post post type and pages in the inventory post type. Each custom post type post would be associated with exactly one inventory_item term.
I’ve searched far and wide to try and find an answer to my question. I’m hoping I can get help here. Here goes…
I’m creating an age select menu in the admin, populated from a taxonomy of age. The taxonomy is hierarchical as follows:
What function will display custom taxonomies associated with a post as text?
Say I have the following taxonomy terms:
I have a WordPress database with over 2 million posts. Whenever I insert a new post I have to call wp_set_object_terms which takes over two seconds to execute. I came across this post that recommends calling wp_defer_term_counting to skip the term counting.
I was wondering if there was a way to prevent the addition of new categories into a taxonomy, essentially ‘locking’ the taxonomy.
I have a custom taxonomy registered for my custom post type. I need to make it possible for a user to specify the order in which the taxonomy terms should appear (something like menu order for pages). Then when displaying the taxonomy terms on the site I will use the specified custom order to order them.