Since WordPress 2.3, plugin and theme authors have had the ability to create custom taxonomies-- essentially specialized "categories"-- to help organize information.

learn more… | top users | synonyms

0
votes
1answer
2k 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
1k views

Allow user to set custom order to a list of custom taxonomies?

I have a custom category checkbox on each individual bio attorney page that shows what practice areas these attorneys are involved in. Currently I have them sorting alphabetically. I am wondering if ...
0
votes
1answer
78 views

posting twice from an array?

I dynamically create iterations of a form field with jquery, but they all carry the name extrakosten[] for the first variable and the other variable vergoeding[]. The php: $postTitle = ''; // save ...
2
votes
1answer
452 views

Automatically create child pages when saving a (parent) page

I have a bit of a tricky one... I have a hierarchical Custom Post Type ('shows') that represents events. Is it possible for the user to create a new page (ie show), save the page and for Wordpress to ...
1
vote
2answers
483 views

Custom taxonomies making WP very slow - Way to fix?

I've set up three custom taxonomies within my theme for attachment post types within Wordpress 3.5.1. One taxonomy is non-hierarchical (i.e. tags) and has about 800 terms in it. (I'm using WP to build ...
0
votes
1answer
273 views

Problem with query_posts for a custom taxonomy in theme options

I am having some issues with querying the output of custom taxonomies in my theme options. I have included what I think are the necessaries below. Many thanks for your help in advance. // Pull all ...
0
votes
3answers
288 views

Listing all custom post types using a specific term on the said term's template page, in groups

I have a custom tag-like taxonomy called PEOPLE registered to all post types - both the default and custom ones. I have created a template for a single term named taxonomy-people.php and I'm ...
-1
votes
1answer
103 views

Display tags & categories seperatly

When I called the_taxonomies() function it shows me both tags and categories. I need tags to show from the_tags() function. At the moment I haven't included the_tags() but shows me the tags through ...
0
votes
1answer
3k views

Loop through multiple custom taxonomy terms and display posts for a custom post type

I am working with custom post types in the bones theme from themble. There, I want to create a link list and therefor i've created a custom post type, called links. This custom post type has a custom ...
0
votes
1answer
1k views

get_category_parents for custom post type taxonomy

I know that we can get the parent category in normal post type by: get_category_parents($cat, TRUE, ' » '); But how can we get the parent category in custom post type? I use this for: ...
0
votes
1answer
562 views

custom post type category page

I can't seem to get archive page or category page to work correctly. I am following http://codex.wordpress.org/Template_Hierarchy#Category_display and it still defaults to archive.php ( i think, ...
-1
votes
1answer
87 views

why do drafts return as part of wp_query?

I have some code as plugin, which I call via AJAX from a page one the site. It gets two drop-down values and uses them in tax_query to fetch some posts. Question: why do drafts return amongst results ...
2
votes
1answer
1k views

How do I query a custom post type with a custom taxonomy?

For some reason I'm finding it a struggle to grab any posts using a custom taxonomy... can anyone unravel my stupidity? $args = array( 'post_type' => 'adverts', 'advert_tag' => ...
2
votes
2answers
243 views

How to output content based on same custom taxonomy?

I have been trying to output content of all post-types (Posts, Pages and CPTs) based on a term of a custom taxonomy that they must share (meaning if they don't share that particular term, the output ...
0
votes
1answer
842 views

Get only the first term by taxonomy

Maybe it's a stupid question but I can't find the answer. I have a custom taxonomy (directores) and each director is a term. Some times a film has more than one director. I need to print only the ...
0
votes
3answers
502 views

Dynamically generate category id and store in variable

I was able to get this working just fine with this code with advanced custom fields: <?php $value = get_field('extended_store_descriptions', stores_47); echo $value; ?> Now how can I make ...
6
votes
1answer
6k views

Custom Taxonomy and Tax_Query

I've been having a lot of trouble getting a WP_Query running with a tax_query on my custom taxonomy. I'm 99.9% sure that my register_taxonomy is correct, as I'm able to tag posts with the right term, ...
1
vote
1answer
240 views

Checking return with WP Error

I've seen other people with similar problems, and I know that I need to check the return when calling for the child items in my custom taxonomy "hhie_artists". I'm not sure how to echo my output to ...
2
votes
2answers
426 views

Function to limit the number of posts in taxonomy.php

How can I change the post limit for taxonomy.php from that which is defined in the settings page? Currently I have 10 posts displaying per page, which is fine for the blog part of my site, but I want ...
1
vote
1answer
34 views

List of Registered Taxonomies of Current Post

I am trying to get list of registred taxonomies of current post, I mean: register_taxonomy('color',array('thing'),$args) ; register_taxonomy('shape',array('thing'),$args) ; ...
0
votes
1answer
51 views

finding out the top 5 source ( source is a custom taxonomy ), in a given category

The client I'm working with have thousands of articles and media ( audio/video ) files. To WordPress, all are posted by Author ID 1, which we named as STAFF. All the content though in reality has ...
1
vote
2answers
678 views

Set posts_per_page in WP_Query for custom taxonomy

I'm using the below code to get all the pages under the custom taxonomy terms, and it shows all the pages. What i want is to limit this and gets only say the last two pages published under the custom ...
1
vote
1answer
418 views

How do I display a custom field from a custom taxonomy in single.php?

I know that the following mysql query produces the exact results I wish to echo within single.php: SELECT meta_value FROM `wp_taxonomymeta` WHERE `taxonomy_id` =565 AND `meta_key` LIKE 'baseurl' ...
0
votes
2answers
958 views

Is it possible to get all term items from a custom taxonomy regardless of post attachment status?

Essentially, I build web sites with galleries, for photographers. Up until now, gallery images have all been attached to posts and I've just pulled from the category taxonomy. This is messy if it's ...
0
votes
1answer
25 views

Better in the long run to use post date or custom taxonomy to sort/separate posts by year?

I have custom type posts that I need to separate by year as the posts are entries in an annual contest. Would it be better in the long run for efficiency of queries, speed, etc to simply use the built ...
2
votes
1answer
36 views

Custom Taxonomy conditionals

So I have setup a custom post type 'products' and custom taxonomies / categories 'defence' 'law & enforcement' and 'Commercial'. I have using the following conditional to set some specific css ...
0
votes
1answer
107 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
1answer
44 views

How can I add the custom taxonomy categories to the posts and pages?

I'm trying to build new wordpress plugin. Additional to the default wordpress categories box in the publishing screen of posts and pages, I want to add another box for custom taxonomy categories , How ...
2
votes
1answer
398 views

How to List Thumbnails based on Custom Categories

I need to list(display) all thumbnails from my Custom Post Types in a page template based on product categories. For Example I have a Custom Category called "Art" and some images(Custom Post Type) ...
0
votes
1answer
446 views

Date range filter for manage posts list on edit.php

I need to add some custom submenu links to the Posts menu in WordPress admin so content managers can click on a link and get a list of posts from today, yesterday or this month. The default date ...
0
votes
1answer
331 views

Loop and add Specific Categories and Products Images

Thanks to Rafael Marques I have a list of Products and Categories organized based on different created categories. I also have 5 different Custom Page Templates. Now I would like to display the ...
-1
votes
2answers
75 views

Custom Post Types on Custom Categories

Can some one let me know how I can create custom Category and Post type including the items in side the red box (Please take a look at following image link) and add them to WordPress dashboard? There ...
1
vote
2answers
2k views

Custom-Posttype & Custom Taxonomy WP_Query

I add a custom post type with custom taxonomy and i wish to get all postings into this by a template, but the result is 0 $args=array( 'post_type' => 'contents', 'post_status' => 'publish', ...
1
vote
0answers
148 views

group posts by taxonomy terms

I have a site with two CPT's Projects and Artworks. I use scribu's posts2posts for connecting a bunch of artworks to each project. In a single Project view, I want to display all connected artworks. ...
1
vote
1answer
107 views

How to display products name in a non-alphabetical order, in a custom field (taxonomy)?

Now the order is: apples, oranges, pears. But I want to be in a random order, for ex: oranges, apples, pears. Or to write them in a order that I want. Is this possible? Taxonomy is like that: ...
0
votes
1answer
1k views

Custom Post Type Taxonomies -Posts not showing in Category or Tag pages

I have a made a custom post type called "Member Resources" the posts under this CPT have a few taxonomies such as categories and tags. Tags = "Diversity" Categories = "Guidance" When I go to the ...
2
votes
2answers
254 views

Correct Way To Show Custom Taxonomy for Image Attachments on Template File

I've created a custom taxonomy called imagetags using the following code: // Register Custom Taxonomy function custom_imagetags_taxonomy() { $labels = array( 'name' => _x( ...
0
votes
1answer
40 views

Apply custom names for generic custom taxonomy name?

Hello, this is more of a 'is it possible' type question. Keep in mind, I am no php master by any means, but can generally figure things out : ) Say i have a wordpress site that is for displaying menu ...
0
votes
1answer
908 views

Custom post type, custom taxonomy, query posts only from taxonomy (children of)

I have a custom post type (portfolio-type) with a custom hierarchical taxonomy (portfolio-category) Now I would like to query only posts from potrfolio-type, so i do: $paged = 1; if ( ...
1
vote
3answers
207 views

Taxonomy/Custom post type structure suggestion on a movie site

I am building a movie database site and I am wondering in a problem and asking how should I solve this problem. I have several custom post types movie, actor, person and others. I want to integrate ...
0
votes
1answer
78 views

Creating a page for custom taxonomy archive

I have a custom taxonomy called 'news'. Inside it I have two categories called 'news-releases' and 'competition-news'. Going to 'mydomain.com/news/competition-news' gives the expected result and ...
0
votes
1answer
223 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
0answers
12 views

Meta data posted in different table [duplicate]

Possible Duplicate: What hooks/filters are there to alter selected terms on post save? I have some meta that I want to store in a different table each time i post or update an article. For ...
2
votes
1answer
105 views

How to specify URLS for custom posts & taxonomies

I've read a few posts about this, but can't find a clear answer :( I have a custom post type called {ondemand} Within the custom post, I have three taxonomies {speakers} and {categories} and ...
0
votes
1answer
135 views

Order posts by month - in custom taxonomy template

I'm trying to show all posts posted under the month, so 2012 December post 1 post 2 November post 1 post 2 The posts are to appear under my custom taxonomy template, so taxonomy-pubyear.php and ...
1
vote
2answers
521 views

Combining custom post type and post category

How can I query all the posts from either the custom post type ('videos') or with a post category ('video') in a loop? I've managed to create a query that combines the posts from a custom post type ...
3
votes
1answer
345 views

get_query_var() not working in pre_get_posts

I'm using the pre_get_posts hook to order the main query on all my custom post type / taxonomy pages using a custom meta value. As part of the logic, I am trying to determine which taxonomy is ...
1
vote
1answer
434 views

How to determine the depth of a term in a custom taxonomy?

I'm building a <select> dropdown to display a list of terms for a custom hierarchical taxonomy. How do I know the depth of each term? I'd like to add some indentation for child-terms (the more ...
0
votes
1answer
545 views

Get post terms with hierarchical relationships

I'm having a hard time getting a set of selected terms in a custom taxonomy presented in a specific way. I have a hierarchical taxonomy 'places' and a post with the tagged terms: England (x) - ...
0
votes
1answer
344 views

Loop for custom-post-type comparing taxonomy terms for “related” posts?

I have a custom-post-type named my_projects and a custom-taxonomy called project_tags. I want to write a function that is returning 5 posts of this post-type based on a given taxonomy term. So I ...