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

learn more… | top users | synonyms

0
votes
1answer
585 views

multiple taxonomies in wp_list_categories' $args

Why doesn't it shows terms in both 'lunch' and 'dinner' taxonomies? How can i do it? <?php $taxonomy = array('lunch', 'dinner'); $orderby = 'name'; $hierarchical = 1; ...
1
vote
2answers
102 views

How to organise this data within WordPress

I have a dilemma in how the data in this scenario should be organised, as well as queried. The main elements in the scenario are the following: Competition Team Player Each player plays for one ...
0
votes
1answer
128 views

Unable to get the Parent Custom Taxonomy Terms

I am unable to get the Parent Taxonomy Terms here is the code i am writing $myterms = get_terms( 'iqvis_event_category', array( 'parent' => 0 ) ); echo '<pre>'; print_r($myterms); echo ...
1
vote
0answers
245 views

Multi-select field for Taxonomy can't save the value

I'm trying to create a multi select field for Taxonomy pages, and the problem is in saving all the selected values, for example if I choose couple of elements in the select field and save it, it will ...
0
votes
2answers
355 views

archive page sidebar not working

i created a taxonomy page from archive.php , working based on thematic frame work. i tried a lot to make the sidebar working but it show nothing and even using firebug its not exist ! <?php /** * ...
2
votes
1answer
1k views

Let users create a new custom taxonomy entry from frontend (without creating a post)

I have created a custom taxonomy called "Club" (a group of people). This enables me to group posts from contributors (like tags). I use the plugin "Quick Post Widget" to let enter their posts form ...
1
vote
0answers
337 views

Exclude posts with taxonomy term from appearing on home page query

I am really confused about this one, I am usually pretty good at working out basic queries but I can't seem to work this one out. Please see below my index.php query. Now it is not your basic query ...
-2
votes
1answer
362 views

Get all active posts that are tied to a custom taxonomy for a custom post type

I need to display all the categories I created for a custom post type then inside of each category I need to loop all the posts that are tied to that category. I tried constructing my WP_Query a ...
0
votes
1answer
80 views

Copying over taxonomy structure from one CPT to another

I have a CPT called adverts and it has 2 taxonomies - category and location. The problem is that there are about 100 entries in location taxonomy and I need to copy the same structure to another CPT - ...
1
vote
0answers
43 views

new site admin not able to browse categories in wordpress multisite

I am working on wordpress multisite. The site i am working on was coded by someone else and made lots of changes in admin. He also made changes in the capabilities and roles. I created an user and a ...
2
votes
1answer
319 views

How to update taxonomy custom field with wp_update_term()?

I'm using Clipper, a coupon theme developed by AppThemes.com, and I'm trying to programmatically import coupons. The problem I'm having is each coupon needs to have a "store" added when it's ...
0
votes
1answer
51 views

How can I create gallery of products and submit data for each product?

I have a client that wants an eCommerce contact to order website. The client wants to submit products on the website, including the price, name, and information for the product. Along with that, the ...
3
votes
4answers
5k views

How to display non-hierarchical taxonomy as terms with checkboxes?

I'd like to have a non-hierarchical custom taxonomy displayed in the add/edit posts admin screen for a custom post type. Obviously, when the custom taxonomy is non-hierarchical, the meta box that's ...
2
votes
1answer
5k views

How do I get the slug of a custom taxonomy category of a post?

In my template file, I loop through posts that are categorized either web, print, or marketing in a custom taxonomy portfolio. How do I echo the slug of each posts category?
0
votes
1answer
30 views

wordpress taxonomy in regular posts

I have a custom post type and taxonomy so the user can post in a specific areas in the theme. User (admin) can add categories easily. But the categories that has been added through my taxonomy don't ...
2
votes
1answer
123 views

Remove custom posts that match taxonomy value

I have a custom post type 'listings' and within that a taxonomy called 'status' where the posts are either 'standard' or 'premium'. What SQL query (or other method), could I use to delete all custom ...
10
votes
2answers
5k views

get_terms by custom post type

I have two custom post types 'country' and 'city' and a shared taxonomy 'flag'. If I use: <?php $flags = get_terms('flag', 'orderby=name&hide_empty=0'); I get a list of all terms in the ...
1
vote
1answer
638 views

Why does querying on post_tags (which has been applied to custom post types) only return posts?

So I've created a little jquery cycle based feature rotator that pulls from the post_tags. I added the post tags to my other custom post types like this: register_taxonomy_for_object_type('post_tag', ...
0
votes
1answer
596 views

How can I create an automatic drop down menu with my tags?

I have another post type which isn't the default one. I have four taxonomies attached to that post type. And I have many tags attached to these taxonomies. I would like to create a drop down menu ...
0
votes
1answer
636 views

Show only, when taxonomy has posts?

I'd like to query posts by taxonomy like this: <?php global $post; $terms = get_the_terms( $post->ID , 'movies', 'string'); $do_not_duplicate[] = $post->ID; if(!empty($terms)){ foreach ...
2
votes
3answers
865 views

Custom Taxonomy in Permalink of Post

It is possible to use this as a permalink for a post: /%category%/%postname%/ But lets say I've created a taxonomy called "artist". I'd like to use this for my posts: /%artist%/%postname%/ I ...
0
votes
2answers
177 views

Echo used hierarchical taxonomies parent name

I want to echo my hierarchical taxonomies parents which I used in my posts. I've see answers about that, but no one didn't help me. To get all taxonomies, currently I use <?php the_terms( ...
4
votes
5answers
4k views

Remove the category/taxonomy description field?

How can I remove the category/taxonomy description field? The one which shows up on the edit category/taxonomy page.
0
votes
1answer
385 views

Show multiple tax_query from 2 or more post_type in a single code

i've been trying with no success to show 2 custom taxonomies from 2 post_type, here's my code: <?php /** * Display a list of the most recent news in 'Avisos' ...
1
vote
1answer
70 views

How to obtain the link/URL to the feed of a custom taxonomy?

What I need to accomplish is to provide a feed link for every item in a custom taxonomy. The function get_category_feed_link only works for categories, and I don't see that tags support this either. ...
1
vote
1answer
38 views

Is using taxonomies the way to go here or would custom post types be better?

I to create a site that will let subscribers select items from a list, say of books or DVDs - essentially building a collection that they could then add additional info, e.g. price paid, where ...
0
votes
1answer
232 views

How can I query all post with currrent taxonomy term?

I created the taxonomy 'machine types', and added several terms to it, like 'cranes' for example. The url to that term now looks like this: domain.com/machine-types/cranes How can I make this url ...
0
votes
1answer
55 views

Custom Query for Taxonomy

What is the correct wpdb custom query for this: taxonomy=pa_main-genre&post_type=product&orderby=name&order=asc Basically i am trying to do is,list all the terms for pa_main-genre. ...
2
votes
1answer
663 views

What hooks/filters are there to alter selected terms on post save?

Very simple, where would I hook/filter to alter the users selection of terms when they save a post (Update or Add)? I need to hook in all instances; such as when saving a post via AJAX, saving when ...
0
votes
1answer
108 views

Show min and max taxonomy values

I'm trying to get the min and max values from a taxonomy, but my code is returning all taxonomies: function get_years ($taxonomies, $args){ $hlterms = get_terms($taxonomies, $args); foreach($hlterms ...
0
votes
1answer
59 views

Associate all Custom Post Types with Taxonomy

I have a custom post type imagery. I have a taxonomy publications. I need all present and future imagery post types have the taxonomy publications. Here's a simplified version of code in ...
0
votes
1answer
126 views

list taxonomy based on taxonomy

Please, someone can help?! I'm fighting with this for weeks and nothing.... I'm quite new in wordpress and php... There is a way to list taxonomy terms based on another taxonomy? OR If is possible to ...
0
votes
3answers
152 views

How to define a term for custom taxonomy

I have a custom post type called q-questions, and it has a custom taxonomy that called q-categories. I insert post via wp_insert_post and I want to define some terms for the taxonomy My code is: ...
0
votes
1answer
145 views

Passing values by form to create a query

I have this structure: taxonomy - term1 -- child term1 -- child term2 -term2 -- child term1 -- child term2 I have two select boxes. First one shows the parent terms (term1 ...
0
votes
1answer
231 views

Taxonomy order exception for specific term

I want to make an exception for my custom taxonomy order. Sometimes you need to put "Other" option as last option but when calling taxonomies with "orderby=name", sadly "Other" term is not listing as ...
4
votes
1answer
208 views

List Hierarchical Term List with Count with Related Term

What I have are custom posts (of a custom post type, wps_business) that have two taxonomies (wps_location & wps_type), and I would like to list all the terms from type of a specific location. For ...
0
votes
1answer
73 views

Trying to display terms from custom taxonomy within function

I have a function that is giving me this error - Catchable fatal error: Object of class stdClass could not be converted to string in.... blah blah Below is some of the code from the function. It is ...
3
votes
1answer
103 views

Is there any difference between post in child term and child & parent terms?

This may be really obvious, but I can't find other documentation or questions about it. Scenario I have a directory of Businesses (custom post types). Each Business has a "Type" (custom taxonomy). ...
0
votes
3answers
197 views

Sharing a custom taxonomy - No posts?

I've been writing up some code which enables two post types to share a custom taxonomy. From the admin side, it works fantastically - but for some reason, when I look at the taxonomy archive itself on ...
1
vote
2answers
807 views

category filter doesn't work in WPML

I translate the categories to another language, but in the main page, the two language categories are all displayed. How can I filter another language? My WPML version is 2.4.1. I found all the ...
1
vote
1answer
308 views

Displaying terms based on loop posts?

I have a shortcode that shows a loop for a custom post type: while ( $loop->have_posts() ) : $loop->the_post(); // do something endwhile; Some of the posts are in categories ...
1
vote
1answer
743 views

meta_key & meta_value not working with get_pages and custom taxonomy

I'm trying to use custom taxonomy with pages. Basically a page has a "relevance" taxonomy, depicting who the page is relevant for. The pages are created in a hierarchy based on the departmental ...
0
votes
1answer
366 views

echo term name outside the loop, using term slug

I have a strange question... I have my term as a variable... $mailer = 'may-2012-newsletter'; And I'm trying to echo on my page the Name of my term, using the variable above. But this is not in a ...
0
votes
2answers
937 views

I want to remove the links from the term list returned by get_the_term_list

I want to keep this category title on my pages, but I don't want it to be a link. <?php echo get_the_term_list( get_the_ID(), 'portfolio_cats', ' ', ' , ', ' '); ?> Can anyone help? Thanks
0
votes
1answer
1k views

How to get the term description in a taxonomy term archive query?

I'm creating a template for a custom taxonomy for my theme. At the beginning of the page, before the loop that lists all the posts associated to a term of that taxonomy, I want to output the ...
0
votes
1answer
1k views

Avoid WP_Query's duplicate posts with taxonomies

Given a blog featuring several categories (such as "Sport", "Nature", etc), I've then proceded to create a custom taxonomy, which allows me to show articles in certain areas of my blog with terms such ...
0
votes
1answer
189 views

Why does my taxonomy code display the first alphabetical term?

What i am trying to do is echo the last hierarchial child term for the taxonomy. My taxonomy is propertytype. My hierarchial structure is: Real Estate (Parent) Commercial (Child) Offices (Child of ...
1
vote
2answers
1k views

How to filter out Categories for specific post types on Wordpress Admin?

How can i programatically change the Category selection menu on wp-admin? is there a hook or filter to edit the Category List? My objective is to filter out specific categories for specific ...
0
votes
1answer
424 views

Implode Taxonomy to hide parents?

The following code will display the child taxonomy term of the parent only. $terms = get_the_terms($wp_query->post->ID, 'propertytype'); $props = array(); foreach ($terms as $term) { if ...
0
votes
2answers
797 views

Remove Parents From Permalink of Hierarchical Taxonomy

I have a custom hierarchical taxonomy called "places" set up with categories like so: Services > Financial Services > Financial Advisors. The permalink for this category listing page is currently ...