A taxonomy is a generic "category" used to organize posts and custom post types

learn more… | top users | synonyms

0
votes
1answer
13 views

List all posts from custom post type by taxonomy

Having custom post types with taxonomies. Lets say I have a custom post type "Products" with taxonomies "new", "old", "fashion". Now I have a Nav where I can click on ...
0
votes
0answers
21 views

sharing slug between taxonomy and custom post

I am having trouble getting the relationship between a custom post and assigned taxonomy to work. The custom posts are clinics, the taxonomy is the location of each clinic: ...
0
votes
1answer
19 views

Custom Taxonomies not appearing in Admin

I've made a plugin of a custom content type and taxonomy. The CPT is showing fine, but the Taxonomies are not. There's a lot of code, but the taxonomy information is parsed below: Full code can be ...
0
votes
1answer
13 views

Get Custom Taxonomy Terms by Date

I'm trying to get a list of custom taxonomy terms by date (or possibly slug). What I need is the NEWEST term and it's permalink in a custom taxonomy. I've been trying the code below but it's returning ...
0
votes
2answers
22 views

Get posts under custom taxonomy

I am not getting the posts under custom taxonomy(fabric_building_types).I am getting cat_id and cat->name also but not able to get the posts. $args = array( 'type' => ...
0
votes
1answer
13 views

How to get selected taxonomy or category ID if using custom walker?

I'm building a taxonomy->child taxonomy dropdowns where the child will only be active if the parent is selected. Everything works great, except that I'm using wp_dropdown_categories for the parent ...
0
votes
0answers
9 views

Removing search base url

Is there a way to remove all slugs from wordpress url (category, tag, author, date AND search!)? (so that something like http://example.com/search/foo would be rewritten to http://example.com/foo) I ...
0
votes
0answers
4 views

Get custom taxonomy for a post from jetpack api [closed]

I am using the wordpress rest api to retrieve posts: https://developer.wordpress.com/docs/api/1/get/sites/%24site/posts/ I have a custom post type that uses a custom taxonomy. Is there any way to ...
0
votes
1answer
12 views

Breadcrumbs: Custom Taxonomy level depth issue [closed]

Has anyone found a solution to overcome custom taxonomy hierarchy depth issues with breadcrumbs? Been searching all over & installed many plugins, but nothing as yet. 'Hansel & Gretel' ...
0
votes
0answers
19 views

Show most recent post from taxonomy

I have a custom taxonomy called "crimes_taxonomies", and I have taxonomies inside of that taxonomy. If I would like to show the content for only the most recent post in a specific taxonomy under the ...
0
votes
1answer
8 views

Display Custom Column in CPT Taxonomy

I am trying to add a column to one of my custom post types, but only on the edit taxonomy page. I have a taxonomy registered called "event-categories" for my custom post type "events". I can ...
0
votes
1answer
11 views

Change existing taxonomy settings when using custom taxonomy

For a plugin I have created a new custom taxonomy for attachments using the function register_taxonomy() and parameters like "show_admin_column". When this parameter is set to true, it shows the ...
0
votes
0answers
13 views

How to create archive page for items in custom taxonomies within custom post types

I'm working on building a portfolio system that's setup with a custom post type (portfolio_items) and a custom taxonomy (portfolio_category). One of the portfolio categories is called "Branding" and ...
0
votes
1answer
46 views

How to Set Taxonomy Object Description?

I noticed when dealing with Post Type Objects (Using get_post_type_object();) and Taxonomy Objects (Using get_taxonomy();) there's a property called "description". How do you set this description ...
0
votes
0answers
13 views

Output terms based on custom fields

This question is rather specific. In my custom posttype "sak", I have a taxonomy called "vvpl". This taxonomy has a custom field called "revision" because a term have copies based on how many ...
-1
votes
1answer
30 views

Issue On Listing Woocommerce Parent Tag List

I am having some issue on getting top level terms of product_cat Taxonomy of WooCommerce First of all I have a code which list all Terms in product_cat as: $terms = get_terms("product_cat"); if ( ...
0
votes
0answers
19 views

Nothing happens when trying to add value into taxonomy

When trying to add a value into any taxonomy (custom or default), nothing happens when the user clicks 'Add' (see http://i.imgur.com/Um1JsoD.png). My suspicion was that there may have been a js ...
0
votes
1answer
26 views

wp_query args adding muitiple tax_querys

i am creating a custom search system which search my custom post type recipes, in the search it searches the taxonomies terms that people have selected. Now due to the way it can hard code all these ...
0
votes
1answer
27 views

Set a taxonomy as private

I created the taxonomy VAT and set public to false. But in frontend I can get posts by .../?vat_tax=22. How can reserve this taxonomy anly for internal use? Below the code I created for this taxonomy. ...
1
vote
1answer
22 views

Reverse traversing taxonomy based on term_id

Is it possible to do a reversed traversing up the hierarchy, if a child term id is known? For example, I might have a taxonomy that looks like this: Cars - Pink - Blue - Grey - Silver ...
0
votes
1answer
18 views

Display taxonomy term slugs

I'm looking to display a slug list of the taxonomy term for the current post within the loop. <?php $terms = get_the_terms( $post->ID, 'wpsc_product_category' ); if ( !empty( $terms ) ){ $term ...
0
votes
0answers
19 views

Get proper tag count for each post type [duplicate]

I am working on a plugin to port over a Druapl 7 installation to WordPress. I've found some useful tutorials on how to do this for Druapl 6 but Drupal 7 seems to lack any information. Nonetheless, I ...
2
votes
1answer
31 views

wp_options table value

I am trying to understand a wordpress behaviour. When I add a tag in the admin panel mysql does a sequence of queries. Essentially: update wp_terms update wp_term_taxonomy and udate wp_options with ...
0
votes
0answers
21 views

Add slug current in get_posts( $args );

In my Costum Post Type,I would like to have a list of my CPT (aka "createur") in my current catégory (aka "domaine"), my code is in taxonomy.php Example : ...
0
votes
2answers
30 views

Get taxonomy names by post id

I'm trying to create a single page where I display a few posts on one page. So far so good. Works all fine. Now I display posts in a foreach loop where I check if they are connnected to the page. ...
0
votes
0answers
14 views

Extract custom image URL from category taxonomy

I've attached an image field to the category taxonomy with Advanced Custom Fields which I want to set dynamically as a full width background. I've done this on the category page without a problem but ...
0
votes
1answer
27 views

get term slug from current posts's custom taxonomy

I've been searching on this topic for 1 hour but I just can't seem to figure it out! Im using this WP_Query to loop trough related posts and create clickable links: <?php $currentID = ...
0
votes
2answers
30 views

Displaying taxonomy icon outside archive page

Here is my problem. I'm working on a video website and we have different categories for each video. We have setup a custom post type called "videos" in which we use the different taxonomies to ...
0
votes
2answers
68 views

Wacky taxonomy in wordpress

I have my main site, www.whatsthatbug.com, and a test site, test.whatsthatbug.com. They are identical as far as I can tell - same version of wordpress, same plugins at the same versions, same theme ...
0
votes
1answer
26 views

Add a field to the taxonomy editor?

I would like to add an additional image field to WooCommerce Product Taxonomy Admin page as part of my theme. It works fine by modifying the existing class within the plugin, but it will be replaced ...
0
votes
0answers
12 views

Generate static pages with taxonomy combinations and enter individual pagetitle etc

I have a custom posttype ("products") and a few taxonomys ("brand", "color" etc.) What I want to do now is: Generate static pages with individual URLs for each variation (ex: ...
0
votes
1answer
34 views

Move posts to top of WP_Query if in certain Taxonomy?

I'm trying to figure out the best way to promote certain (custom) posts to the top of my Wordpress loop. I can't use sticky posts because they are all in a custom post type.. I was thinking of using a ...
1
vote
1answer
73 views

Display empty taxonomy terms with get_terms()

I have a function setup as follows: <?php $terms = get_terms("wpsc_product_category"); if ( !empty( $terms ) && !is_wp_error( $terms ) ){ foreach ( $terms as $term ) { ?> ...
0
votes
1answer
34 views

Custom Post Type Categories Not Maintaining URL structure any more

I'm having a really hard time with this... I have a custom post type called "locations" that has several taxonomies for it. I was originally able to get it so that when you clicked on the category / ...
0
votes
1answer
46 views

Adding taxonomy terms based on custom field

I have a custom post type that I am setting up so that different sets of custom fields are displayed based on the type of post it is. Its one of three (collection, product, or variant). I have ...
0
votes
0answers
15 views

Custom taxonomy no data

Ladies and Gentleman, i have a problem. I habe created a taxonomy like this in my functions.php function drivers_init() { // create a new taxonomy register_taxonomy( 'tax_drivers', ...
0
votes
1answer
49 views

Random taxonomy category list

I'm trying to display one of my custom taxonomy lists on a page. I want to show five but have them in different random orders when the page is refreshed. I've tried using shuffle, but it just ...
1
vote
0answers
29 views

How to generate a list of all urls

I'd like to display a list of all Urls of my Wordprees site. I print out a list of all taxonomy terms like this : <?php // Get all Post $html = '<h2>Articles</h2>'; ...
0
votes
2answers
41 views

get_terms() doesn't return empty terms even though hide_empty is false

I can't manage to make get_terms() to return the empty terms and I've tried it in a number of ways. Here's the code: $terms = get_terms('device',array('hide_empty' => 0)); foreach($terms as ...
1
vote
0answers
31 views

How can I edit the 'Most Used' tab in the categories meta-box to show another custom taxonomy?

The 'Most Used' tab in the categories meta-box is the one that can be seen in the Edit Post section. I want to replace the Most Used tab, with a tab that lists another Custom Taxonomy, or edit the ...
0
votes
2answers
167 views

Filter second dropdown (tax) based on first dropdown (cpt)

I've been googling and attempting this for over a week now with no success. I have a few custom post types (books, films, music etc), and a custom taxonomy (location). On my frontpage, I have two ...
0
votes
1answer
36 views

Creating a archive for taxonomy terms, not the term results

So I am attempting to build the first page in my navigation hierarchy to choose product categories. I have a custom taxonomy called collections. I would like to create a page that loops through all ...
1
vote
1answer
43 views

Display 1 Post per taxonomy with polylang

I am trying to make a loop where I display all my taxonomies with the first post of every taxonomy. It's the taxonomy "customers" and I want to display every first portfolio-CPT of the customer. I ...
2
votes
1answer
44 views

Does WordPress Offer a Way to Find All of the Categories that Don't Have Children?

Background As discussed in Is There a Difference Between Taxonomies and Categories, taxonomies refer to a generalized system of classification and organization of objects or data. In the case of ...
0
votes
1answer
65 views

“show option all” on list categories doesn't display taxonomy

I have a wp_list_categories list set to display my custom taxonomy. Everything works fine, and now I want to add a show_option_all link. However, when the link is clicked it displays all default ...
0
votes
0answers
13 views

Get taxonomy on publish

I'm not seeing exactly what I'm looking for, so forgive the potential repetitive question. On publish_post, I'd like to check the current post's taxonomies and do something with them. However, the ...
0
votes
0answers
15 views

Combined Category+Tag Archive Page

I am currently developing a music blog. I am using Wordpress categories for the artists and the Wordpress tags for featured artists. I want to combine the archive pages for artists and features into ...
0
votes
0answers
40 views

Sorting a list of users by a user taxonomy with Pods

I’m trying to use user taxonomies to sort my userbase into categories and then show a list of taxonomies in the sidebar that on click expands to show the users within each taxonomy. I’m struggling a ...
2
votes
1answer
53 views

Adding a term name from a custom taxonomy assigned to a post link displayed by a wp_query loop based on another taxonomy

I have registered a custom post type "Animals" and also two custom taxonomies ("Vertebrate" and "Type") assigned to it, which have their own specific terms, for "Vertebrate" it will be "Mammals" and ...
0
votes
0answers
11 views

foreach loop pagination for taxonomy blog category [duplicate]

I have a wordpress website running in which I have a blogs page where I display all the blogcategories using the following code <?php $taxonomy = 'blogcategory'; ...