Tagged Questions
0
votes
0answers
22 views
Displaying hierarchical taxonomy terms on taxonomy template
Sorry if this is a little long but it is somewhat complex. I thought I was going down the right path. Here it is. I have created a custom post type and a custom taxonomy for it named location. In this ...
0
votes
1answer
33 views
add_query_arg to look up page title
I'm trying to get the code below to look up the status name, i.e. new, open, pending or resolved with the word ticket together to find pages called new tickets, open tickets etc.
$ticket_status = ...
0
votes
0answers
19 views
Listing custom post type items from a couple of custom taxonomies
I know I have asked a similar question in the recent past (Listing all custom post types using a specific term on the said term's template page, in groups), but in this case, the template is more ...
1
vote
2answers
50 views
How to List Parent Term Links for Custom Taxonomy With & Without Children?
I have a Custom Post Type of "projects", that is categorized by a Custom Taxonomy of "industry", which is heirarchical. Projects & sub-projects are assigned to the industries. For Example, the ...
0
votes
1answer
68 views
Query custom posts from custom taxonomy
I'm trying to do a custo slideshow, but I have problems with query the posts.
I have defined a custom post type "slider" and a custom taxonomy "slideshow":
custom post type:
function ...
1
vote
1answer
44 views
Wordpress Custom post query sorting does not work
I created a custom WP query to collect products that have 3 different taxonomy values in them and sorted them by price using the following:
$my_products = new WP_Query(
array(
...
1
vote
1answer
144 views
Recreating the hierarchy of taxonomies for a dropdown form menu?
I have a form that contains a dropdown menu. This form is on a page form.php and is not part of my theme. It exists outside of my site. This dropdown menu contains my list of values for a custom ...
0
votes
1answer
115 views
Get 1st parent category id from post
I have this structure for my categories:
Issue 4
- News
- Supporting our troops
- Breaking news
<?php
$category = get_the_category();
$parent = ...
0
votes
1answer
61 views
List related terms + taxonomies
I have a set of main categories for a set of products. All these products has additional taxonomies associated with them.
On a product category page, is there a way I can get all terms in use for ...
1
vote
1answer
181 views
Get parse_query filter to return slug instead of id
After much headache in the last week I feel like my problem is almost solved. I have been attempting to customize the admin edit.php page of custom post types to display and sort/filter custom ...
0
votes
1answer
520 views
$wpdb query a post type within a specific taxonomy term while ordering posts by custom meta value?
I have a custom post type 'event', a custom meta field 'event_date' and a custom taxonomy 'locations'.
I want to query $wpdb to retrieve posts in this way
posts must be of the 'event' post type
...
1
vote
1answer
224 views
Display category posts grouped by taxonomy
I'm working on a project where I use the default posts as "Products", default category as "Application" and a custom taxonomy called "Groups".
I want to list "Products" by "Application" ...
0
votes
2answers
207 views
Include different loop templates in search query
I have differnet Custom Post Types in my blog. I also have custom templates for each of them like loop-{$cpt-name}.php
I would like to include different cpt templates dynamically in search results ...
0
votes
1answer
177 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
351 views
Is it possible to create a shortcode that will query a post based on taxonomies?
I am working on a site that will be listing a few hundred products and we wanted to be able to quickly/easily show specific products on a page based on taxonomies. I have been doing some research and ...
3
votes
1answer
984 views
restrict_manage_posts not working in 3.3.1
I have noticed my custom taxonomy filters no longer work in the 3.3.1 admin as per these methods:
Adding a Taxonomy Filter to Admin List for a Custom Post Type?
I also discovered that to filter a ...
0
votes
1answer
1k views
Can I use $query->set() (in a pre_get_posts() hook) with a custom taxonomy in WP 3?
I can do something like the following with a standard category:
$query->set('category__not_in', $term_id);
But how do I do the same with a custom taxonomy term?
I'm using Wordpress 3.3.1 if it ...
0
votes
1answer
253 views
working with term_relationships table
I have this little code to insert posts via custom form:
$post = array(
'post_author' => 1,
'post_title' => 'my title,
'post_content' => 'my content',
'post_category' ...
0
votes
1answer
145 views
making an index from custom taxonomies and tags of posts (not hierarchical taxonomy)
i have attached custom taxonomies to posts.
now i'm looking for the best way, architecturally speaking, for automatically creating list that would look like this:
energy (32):
how to build a solar ...
0
votes
1answer
459 views
Filter all queries with a specific taxonomy
Is there any way to filter all post queries and add a specific taxonomy? Case in point, I have a taxonomy object of "Region" with terms like "Global", "Americas", "Europe", etc. (Users designate ...
0
votes
1answer
125 views
How can I query for all values of a custom taxonomies?
Suppose I have a Custom Taxonomy "Fruits". I want to query for all the values available eg. Oranges, Apples, Mangos etc. How can I do that?
0
votes
1answer
389 views
Query Multiple Custom Taxonomies
I registered 2 taxonomies: festival_year and art_genre. I would like users to search for a specific year and genre but am not sure the best way to do this.
I have tried various plugins but none have ...
0
votes
1answer
1k views
Query multiple taxonomy in Custom Post Type
Currently I use:
query_posts("post_type=listing");
to pull all entries of my custom post type.
But I have a taxonomy called status with the values of Available, Pending, Sold.
I only want to show ...
0
votes
2answers
2k views
wp_query orderby title and meta key value (WP3.1)
I have a taxonomy wp_query and i would like to order the list by title and by meta value (numeric value)
Have a meta value Interesting = 1 or 0 in the posts
Not so interesting posts would be at the ...
0
votes
1answer
410 views
Can I query posts by taxonomy conditionally based on post type?
I have a query based on multiple post_types and taxonomies that works well, however I would like to add a level of complexity and query a taxonomy only for a specific taxonomy.
This query works as ...
