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

learn more… | top users | synonyms

0
votes
1answer
791 views

Query Multiple Custom Post Types & Exclude a Taxonomy Term

I'm querying multiple custom posts types and I'd like to filter certain posts that are tagged with a specific taxonomy term. The taxonomy is "content" and the term is "indy" I'm using the the code ...
0
votes
1answer
2k views

Setting selected term_id with wp_dropdown_categories?

I'm using this code to get the term_id of a custom taxonomy. The drop down does list the terms of the taxonomy Type. When I print the $terms variable I see the term ID of the post i'm editing on the ...
0
votes
1answer
368 views

Building a Data Intensive Website with Wordpress

I am an intemediate website builder and have been working with wordpress for a few years. I am attempting to build a website (for myself) that is data intensive. All I've built to date are sites ...
0
votes
1answer
109 views

Only display latest custom taxonomy post

I have a custom taxonomy set as a "splash" on my front page, I would like to only display the latest one of these taxonomies as a splash, and any older ones to be returned to the loop and displayed as ...
0
votes
2answers
2k views

Custom post type, taxonomy and admin bar

I have two kind of post types in my WordPress website: "Articles" which is the classic post type "Breves" which is a custom post type I want them to share the same standard categories and post ...
0
votes
1answer
1k views

Get post-meta value of all custom-posts - lowest to highest year-count?

probably tough to describe: I have a custom-post-type called wr_event and a custom-field for it called event_date. I have a lot of posts and each of those posts has set an event_date. Pretty ...
0
votes
1answer
247 views

How to display posttypes and taxonomy in standard posts, not in a separate label?

I want to display some taxonomies directly in "Posts" label, as standard post, not in a separate label like "Books" for exp., but i don't know how. Is there a way to do this? This is the code: class ...
0
votes
2answers
2k views

How to use wp_category_checklist()?

I've recently discovered that we can insert a dropdown list of categories like this: <?php define( 'WP_USE_THEMES', false ); require( './wp-load.php' ); ?> <?php ...
0
votes
1answer
387 views

Automatically show 'taxonomy' meta box by default in Appearance > Menus?

Is there a way (with code) to automatically show the 'taxonomy' meta box in Appearance > Menus ? This way, the users don't have to click on the 'Screen Options' tab > 'Show on screen' > 'taxonomy' ...
0
votes
1answer
699 views

Display custom taxonomy attached to the post on post single page

I need to display the first custom taxonomy attached to the post on post single page. The custom taxonomy is similar to category attached to the posts. I need to display the first custom taxonomy with ...
0
votes
1answer
52 views

How to use this $tax_selection variable in this custom loop?

I took this code from this question (which shows how to let users choose which posts to display by choosing categories and tags): Filter index page plugin function.php add_action( 'pre_get_posts', ...
0
votes
1answer
1k views

creating categories programmatically

I'm creating a batch uploader and it would be good if I could also add categories with parent categories to my posts. I have the following code: $my_cat = array( 'cat_name' => ...
0
votes
1answer
810 views

How to Order a list of taxonomies? orderby?

I am using this code to fetch a list of child taxonomies. I want the order displayed to be alphabetical, but it is not! Any help in figuring out how to do it? I guess ordering it before returning it ...
0
votes
1answer
335 views

Natural sort / ordering wp_dropdown_categories

I'm using the following code to display an archive dropdown: wp_dropdown_categories( 'taxonomy=week&hierarchical=1&orderby=name' ); However the format of the taxonomy is week-1, week-2 ...
0
votes
1answer
39 views

Can I connect a page to a taxonomy?

I'm creating a website for a soccer club. It has news, reports and media custom post types. There you can connect the post to the Team taxonomy. But I also need to have a page for that team where I ...
0
votes
1answer
35 views

Declaring arguments for taxonomy

Just a bugbear about declaring taxonomies, reading Justin Tadlocks article about Taxonomies and want to find what does the 0 mean in this snippet from the above article: add_action( 'init', ...
0
votes
1answer
888 views

Query Custom Post Type by Taxonomy

I've created a query working fine pulling posts from a specific taxonomy—but before I had only 7 taxonomies that were permanent, now I have sub taxonomies under that main taxonomy and they will be ...
0
votes
2answers
696 views

Categories from front-end, checkbox selection doesn't work

I'm using the plugin Post from site, which sets up a WP front end writer. I changed some line of code because I need to select categories with checkboxes and not with a multiple select (as it was ...
0
votes
1answer
823 views

Taxonomy-{taxnonomy}.php is not working

I have just created a custom post type (portfolio) for a wordpress website. I also have added a Custom Taxonomy called (portfoliocategory). I have created a archive page for my Custom Post Type ...
0
votes
1answer
815 views

How can I get Taxonomy Images to work with 'orderby' argument?

I'm using the Taxonomy Images plugin and am trying to sort the taxonomy but Taxonomy Images isn't playing nice. This works: $terms = get_terms( 'work_cat', $args ); but this doesn't: $terms = ...
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 ...
0
votes
2answers
360 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 /** * ...
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 - ...
0
votes
1answer
387 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' ...
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
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 ...
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
2answers
803 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 ...
0
votes
2answers
169 views

Can you have seperate sidebars for multiple taxonomy archives?

I have a site that uses multiple query taxonomy archives. i.e www.sitename.com/taxonomy1/taxonomy2/taxonomy3 Is there a plugin or method to create a dedicated sidebar for each queried taxonomy ...
0
votes
2answers
4k views

Get Current Custom Taxonomy ID by Post ID

If I know the current post id that i have in the variable $pid I use $terms = get_the_terms($pid, 'custom_category'); How do I get just the term id/term_taxonomy_id if I var_dump $terms I see what ...
0
votes
1answer
344 views

Echo the Last Child Taxonomy only (not parents)?

I have a question about how to echo a child taxonomy only. My taxonomy is location. I have a parent location and child locations like so: London (parent) West London (Child) Chelsea ...
0
votes
1answer
1k views

Want Page Descendants when using query_posts post_parent or child_of

I'm trying to use query_posts to list all descendants of a page ID. Using post_parent only lists the first-level children. This Trac ticket seems to address it: ...
0
votes
2answers
1k views

Missing term_id and term_taxonomy_id when adding a term using wp_insert_term() function

Check the line; list($term_id,$taxonomy_id) = $result in the code snippet below. ( towards the bottom ). Why am I missing the term_id & the $taxonomy_id when I echo their values? Aren't ...
0
votes
2answers
236 views

Tax Query trouble

I can't seem to figure this out. The following query works: $xxxx = new WP_Query(array( 'listset' => 'homepage', 'meta_query' => array( array ( 'key' => 'show_home', ...
0
votes
1answer
2k views

Exclude specific taxonomy term when using wp_get_post_terms

i have a single-post_type.php file where i constructud a breadcrumb (or similer to) i am currently using this to get the terms of this taxonomy: $terms = wp_get_post_terms( $post->ID, ...
0
votes
1answer
1k views

How to query term_id of a Custom Taxonomy by name

I have created a custom taxonomy "Birthday" within which i have created various dates like "December-12", "April-15" How to get the term_id of the "December-12" by a query. Thanks.
0
votes
2answers
401 views

Custom taxonomy in WP_Query not working

I'm truly stumped here. I have a specific taxonomy for sorting posts into different types of "featured" posts on a news site. Here's the problem: When querying by them the results aren't what they ...
0
votes
2answers
211 views

Sort Archive by Taxonomy

I have a site with Taxonomy for State (Eg Victoria, Qeensland ETC) this taxonomy is called listing_state. I also have a taxonomy called membership_type which can be Free or Paid. These 2 taxconomies ...
0
votes
2answers
245 views

Help Understanding Taxonomy

OK, I need some help understanding taxonomies. I know what they are, I know how to make them, but I just don't what they're actually good for. So let's say I have a custom post type for video game ...
0
votes
1answer
337 views

How to have “the most used tags” taxonomy always expanded?

How can I have some taxonomies to always have "the most used tags" displayed when a new post is being created. Thanks.
0
votes
1answer
82 views

Best way to sort estates and query them (for rent? yes/no. contains office space? yes/no)?

I´m building a real estate site where Estates is a custom post type. I want to be able to tick a checkbox or something similare on the edit page, where I can choose if the estate is for rent, if it ...
0
votes
2answers
303 views

Update all posts at once

I have added a custom taxonomy to my posts, that will get a value by iteself on post_update action. What will be the SQL query to update all my posts at once so that the taxonomy value is added to ...
0
votes
1answer
194 views

Display check marked taxonomies as drop down menu

I've built a hierarchical taxonomy that displays a master list of available fragrances in the admin. When you create a page, you checkmark the fragrances that are available for that particular post. I ...
0
votes
1answer
670 views

Taxonomy Checkbox Admin Panel

I have a basic Admin panel allowing Admin to save options using Checkbox. Checkboxes are used as multiple selection is necessary for the option So, Admin Option - Checkbox 1 - Checkbox 2 - Checkbox 3 ...
0
votes
1answer
64 views

Retrieve all term IDs of post

I have an array of term IDs that I'd like to filter my query with, but most wordpress functions seem to need the 'taxonomy' field entered too. Is there a reason for this? Passing the taxonomy ID ...
0
votes
1answer
71 views

Prevent certain subscribers from seeing specific taxonomies (changes frequently)

I've created a taxonomy (let's call it tax). I need to limit what a user can see. The users can't edit anything, just read the blog. If it was just setting what they could see once, I'd probably just ...
0
votes
3answers
763 views

how can i display taxonomy instead of category on my web page?

I want to display taxonomies instead of categories on the homepage of my blog. What can I do to achieve this?
0
votes
1answer
220 views

Replacing a placeholder term with a session variable value in taxonomy filter

I have in my themes some code which will set a session variable. For the sake of example, it's a geolocation routine which will set to either USA, UK or ROW, resulting in: $_SESSION['region'] = ...
0
votes
2answers
168 views

How to display posts from two taxonomies?

I have site with rankings of doctors. Medical specialization and localization where doctors live is stored as a taxonomy. For example: city -> New York, London, Paris specialization -> surgeon, ...