Tagged Questions

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

learn more… | top users | synonyms

0
votes
1answer
20 views

Taxonomy template by post type

I have 2 custom post types that share a taxonomy. The taxonomy template of my taxonomy ( taxonomy-my_tax.php ) will query both custom post types. Is there a way to have a taxonomy template for each ...
0
votes
0answers
26 views

problem in taxonomy-{taxonomy}.php pagination

my custom taxonomy is: $image_labels = array( 'name' => _x( 'تصویر', 'Taxonomy General Name', 'text_domain' ), 'singular_name' => _x( 'تصویر', ...
0
votes
1answer
39 views

Is a custom post type considred a plugin?

I am reading up on custom post types and taxonomies. I am new to Wordpress development, and just trying to get a firm grasp on custom post types. Upon creating a custom post type: <?php /* Plugin ...
2
votes
2answers
64 views

Consolidate Metaboxes into 1 Big Metabox

I have a post type with 7 (count it SEVEN!) taxonomy tag boxes. By default, the only options to display these metaboxes are - 7 small metaboxes on the right side stacking or turn these tag metaboxes ...
0
votes
1answer
45 views

Can One Taxonomies Terms be Ordered by A Seperate Taxonomy?

I need some advice. I have a post type called "Movies" for example. Inside Movies, I have two taxonomies: Genres and Ratings Under Ratings my terms are 5 star, 4 star, 3 star, etc. Under Genres ...
0
votes
1answer
34 views

How to loop through 1 CPT with 2 Taxonomies

I have a CPT (Products) which has 2 taxonomies (Industry and department) I have the loop which delivers a "Product by Industry" which works Industry 1 • result 1 • result 2 Industry 2 • result 1 • ...
0
votes
2answers
42 views

Taxonomy - Exclude post format from showing on page

Im trying to set up a taxonomy to hide a post_format on a particular page. I have created the below which stops that post_format from displaying on the page but it also hides it in the 'Posts' page ...
1
vote
1answer
67 views

How do I taxonomy terms based on terms they are used alongside?

How do I get all of a single taxonomies terms that have one or more particular sibling terms? For example, let's say I have the following taxonomies. Terms are listed underneath the taxonomies, and ...
0
votes
1answer
23 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
24 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
23 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
15 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 ...
1
vote
2answers
27 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
21 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
10 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
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
9 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
15 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
14 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
47 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
14 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
32 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
33 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
32 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
25 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
24 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 ...
3
votes
1answer
45 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
22 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
36 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
15 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
28 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
31 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
70 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
29 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
14 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
38 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
90 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
50 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
33 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
54 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
178 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
37 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
51 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
45 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 ...