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

learn more… | top users | synonyms

0
votes
1answer
1k views

SQL QUERY needed to get POST category (taxonomy) ? - MUST be SQL statement

Working on a tool outside of Wordpress to query the wordpress database by POST_ID and return the Category Name associated. This is for a real estate website, and the Categories are called ...
0
votes
1answer
224 views

Categorize wordpress tags

I have problem about categorizing wordpress TAG, in my case for language. for example: postA: englishtag1,englishtag2,englishtag3, chinesetag1,chinesetag2, postB: ...
0
votes
2answers
942 views

WP Query with custom taxonomy

I'm just getting used to the WP Query and was hoping I could get some assistance on this. I've created a custom taxonomy (theme) and now want to display the latest post with one of these taxonomies ...
0
votes
1answer
2k views

Create custom taxonomy and Display in metabox dropdown

I'm looking to create a dropdown in the post edit screen which contains 3 already existing tags. What's the easiest way of doing this? Basically all I'm looking for is a simple drop down which adds ...
0
votes
1answer
224 views

ISOTOPE - Missing/Invalid Arguement Get Terms

I am trying to use the isotope plugin for sorting on my taxonomy page and even though I don't know much about how to set it up, I tried using some advice found on here. Wordpress and isotope ...
0
votes
1answer
292 views

Filter/Sort Post Form On Taxonomy page

I am trying to create a form on the taxonomy template that will be able to filter the posts the current user is viewing. I want to use a few drop downs and submit button to do so. My code looks like ...
0
votes
2answers
331 views

Get terms in hierarchical taxonomy

I have a hierarchical custom taxonomy ("photos"), with 3 parent terms color location year Each parent term has several children terms. I have associated the "photos" taxonomy with pages and have ...
0
votes
1answer
74 views

Add URL field to wordpress taxonomy

Like the title states I'm trying to add a URL field to taxamony. function create_post_type() { register_post_type( 'brands', array( 'labels' => array( 'name' => ...
0
votes
1answer
181 views

WP native tag suggest metabox. How does it process tag id?

As you know, there is a metabox that suggests tags as you type to input box. Is anyone knows how this function gets the tag's ID (term_id) which is selected? I have looked at some of the core files ...
0
votes
1answer
572 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
180 views

Wordpress Taxonomy Menu

I have got the following simple code. <ul id="filter"><?php echo '<li class="active"><a href="#" class="all">All</a></li>'; if ( $count > 0 ) { ...
0
votes
1answer
196 views

List of taxonomy archive index page links

I want to show all my post taxonomies on the left side of the web page in such a way that when a person click on it the post can be displayed according to the taxonomies.is there anyway to display ...
0
votes
1answer
749 views

get a specific taxonomy term name

I need to print a specific term with its id. I get that for categories with this code: <a href="<?php echo get_category_link(1); ?>" title="<?php echo get_cat_name(1);?>"><?php ...
0
votes
1answer
50 views

Get Posts with matching lowest taxonomies

I have a post type called venues, and each post type has a list of values to choose from in my custom taxonomy 'location'. E.g: London (top level) West London (2nd level) North London (2nd level) ...
0
votes
1answer
280 views

Custom Post Type order Title ASC

I´d like to display all car manufacturer in order by title (e.g. "Merecedes") and order from lowest to highest values (e.g. "A-Class") "ASC", too. It should looks like a glossary. Page: Cars A ... ...
0
votes
1answer
129 views

Drop posts from categories in MySql

Is there a way to remove all posts from all categories? I found plugin for this, but it's very slow. What I need is MySql query that will help me remove all posts from all categories. If you know how ...
0
votes
1answer
91 views

Custom posts and custom taxonomies for many products and categories?

I'm a little confused about custom posts and custom taxonomies... I've read it everywhere but I didn't understand very well.. I would build a wordpress site, with many products, categories, feature ...
0
votes
1answer
287 views

custom post type tags

I have this code: $args=array( 'post_type' => array ('portfolio'), 'orderby' => $orderby, 'order' => 'DESC', 'paged' => $paged, 'posts_per_page' ...
0
votes
1answer
84 views

Assign a category by user and customize the edit-tags.php?taxonomy=category page

I've been searching for days now without success... Here's my goal: - assign a top level category by user (this I've made it) - let each user create child categories only in his assigned category ...
0
votes
1answer
115 views

Create advanced portal website with sections - taxonomy usage?

I would need your help. Please let me explain my needs. I need to create a portal-based website, and I have some doubts about the right way. The homepage will contain a few "sections". Each section ...
0
votes
1answer
422 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; ...
0
votes
1answer
50 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 ...
0
votes
1answer
29 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 ...
0
votes
2answers
630 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
162 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( ...
0
votes
1answer
49 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. ...
0
votes
1answer
91 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
112 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
1answer
141 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
2answers
661 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 ...
0
votes
1answer
182 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 ...
0
votes
1answer
319 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
1answer
145 views

retrieve post slug by post_tags taxonomy

My scenario: I have a part of a site which retrieves all post_tags terms for a specific category the code: query_posts('category_name='. $category[0]->cat_name); ...
0
votes
1answer
521 views

Getting the parent from the wp_term_taxonomy

Is there a built in wordpress function that let's me look up the "parent" field of the wp_term_taxonomy table if I pass the TT_ID to it? Something like get_value ( $wp_table_name, $id_fieldname, ...
0
votes
1answer
555 views

Alternative for is_taxonomy() to workaround theme's default sidebar

My Wordpress theme is using some code in the "sidebar.php" file that tells it that some pages should always use the default sidebar. This was fine until I found that each and every custom taxonomy ...
0
votes
1answer
349 views

Structure of custom post type / taxonomy?

I have three custom post types created already and their landing pages (page-events.php, etc): Events, Retreats, Coaching But for the first, I need some sort of categories which I am going to list ...
0
votes
2answers
295 views

Related terms - Terms that feature in post of current term

Not sure how hard this is but i'll try and explain it as simply as possible. I have a custom post type called: "Movies" with an taxonomy term called "Actor" For example purposes suppose were on the ...
0
votes
2answers
501 views

Taxonomy template shows only 10 posts

So I'm a little confused with this one. A blog I recently set up makes plenty of use of custom post types and custom taxonomies. In the reading settings the blog posts to show is at 100 but I can ...
0
votes
2answers
438 views

child_of not working in wp_dropdown_categories

I have wp_dropdown_categories working without setting child_of. Once I set child_of, all categories disappear. Here's my code, what should I do to enable child_of? function dropdown(){ ...
0
votes
1answer
189 views

Description of a sub-taxonomy

I am using this code to display description of a taxonomy. <?php $my_taxonomy = 'institute'; $terms = wp_get_post_terms( $post->ID, $my_taxonomy ); echo term_description($terms[0]->term_id, ...
0
votes
2answers
1k views

Why is taxonmy-[taxonomyname].php not working?

I've registered a couple of custom taxonomies to go with a couple of custom post types but I'm having some trouble getting a template file to work. I've tried taxonomy.php, taxonomy-[termname].php, ...
0
votes
1answer
280 views

Taxonomies not showing in WP Dashboard Right Now widget

For some time I've been using this code snippet adding both custom post types and custom taxonomies to the WP Dashboard Right Now widget: function dashboard_right_now_content_table_end() { $args ...
0
votes
1answer
3k views

How to get posts using category slug in ClassiPress?

I'm using the ClassiPress theme as a base for a new theme. If you have worked with classipress, you should know that classipress handles its own category using the taxonomy ad_cat. That said, I have a ...
0
votes
1answer
182 views

Custom Taxonomy link out the loop

how can i get Custom taxonomy URL by taxonomy ID outside the loop like get_category_link();
0
votes
1answer
94 views

Taxonomy template for all taxonomies attached to certain post type

For instance, I have a product post type and I would like all the taxonomies associated w/ this type, such as size, color, material etc to display using the same template without having to 1. create a ...
0
votes
1answer
304 views

What is the current page's Taxonomy?

I need to be able to switch between the current page taxonomy so I can load in the appropriate menu: $current_tax = 'need to get this from somewhere'; switch ($current_tax) { case 'tax1': ...
0
votes
2answers
2k views

Loop custom post type by taxonomy (Category)

I created a custom post type in my function.php of the theme and some a taxonomy for them. I added 2 categories in my taxonomy (first, second) and added some post in my new custom post. I want to ...
0
votes
1answer
209 views

Order taxonomy terms by the frequency of use in the last 30 days

I would like to know how to order the terms in some taxonomy according to their frequency of use in posts in the last 30 days. What I am looking for is the most optimal method how to add "orderby" ...
0
votes
1answer
223 views

Sorting tags by name

I'm displaying a lit of tags when they have a description. I'd like to sort them by name instead of by post quantity. Is there a way to do this? <?php $tags = get_tags(); if ($tags) { ...
0
votes
1answer
674 views

Plugin to assign parent category on multiple taxonomy terms

I've inherited a mess of a WP site. I need to be able to take 100+ categories and rearrange parent/child relationships. I need something with a UI that will make this easy. Anyone know of a plugin ...