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
155 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
74 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
39 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 ...
1
vote
1answer
44 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
85 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
35 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
134 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 ...
3
votes
1answer
679 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
49 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 ...
1
vote
1answer
78 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
25 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
41 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 ...
0
votes
2answers
110 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
78 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
59 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
22 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
22 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
72 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
33 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
180 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
128 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
120 views

How to Loop and add Specific Categories and Products Images into Specific Page Template?

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
54 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 ...
0
votes
2answers
122 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
86 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
55 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
157 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
120 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
0answers
15 views

Set a custom taxonomy to be a required field [duplicate]

Possible Duplicate: Require a Custom Taxonomy to be checked I Have a custom post type and a custom taxonomy with multiple terms. What I want to do is to not publish the post without ...
0
votes
0answers
11 views

How to remove “Add new taxonomy” form in manage taxonomy page? [duplicate]

Possible Duplicate: How To Remove The “+ Add New Category” Link From A Category Metabox For this case in use taxonomy name "Country" in the picture how to remove this form. So I can ...
0
votes
1answer
29 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
198 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
70 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
50 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
113 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
0answers
57 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
66 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
169 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 ...
1
vote
0answers
128 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
79 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
92 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
133 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 ...
0
votes
1answer
91 views

How to add a custom page template selector to a custom taxonomy?

I am trying to add the custom page template selector that can be found in the "edit page" screen for pages to a custom taxonomy. The custom taxonomy is product_cat created by WooCommerce. I am using ...
0
votes
1answer
53 views

Template file renders on local install, not on web

I've been building a website that involves a child theme of Twenty Twelve and a custom post type with associated custom taxonomy, "area". I've built a template file (cribbed from code found elsewhere) ...
0
votes
2answers
148 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
2answers
34 views

Are taxonomy hierarchies possible?

The way WordPress handles taxonomies and terms isn't fool proof enough for the users of a project I am currently working on. Here's the example I need: I have a "Conference" taxonomy, a "Divisions" ...
0
votes
1answer
251 views

Creating custom post type and taxonomy archives and pretty URLs

I've created a custom post type, Local Pages and two different taxonomies: Locations and Services. As of now, the custom post type works. However the urls are not pretty. They look something like: ...
0
votes
1answer
320 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
2answers
184 views

Remove custom taxonomy column from my custom post type columns

I am using wp 3.5 i have a custom post (sp_product) and also i have custom taxonomy. I want to remove that custom taxonomy filter column but i don't want to make 'show_admin_column' => false. I ...

1 3 4 5 6 7 26