1
vote
2answers
70 views

Why won't my taxonomy query show up?

I'm attempting to display posts from a 'Uncategorized' category under a custom taxonomy called 'Reviews' but without much luck. I'm using get_template_part('loop','review') to call loop-review.php ...
1
vote
1answer
22 views

Advanced Query Logic With Multiple Taxonomies

I have a page on my site that acts as a search tool/search results page for users to find rental spaces. On the left side is a column of checkboxes that let the user filter the results by three ...
1
vote
1answer
31 views

Hiding taxonomies with no children WP_Query & tax_query

I have this code which has taken over 7 hours to put together through research but the last hours or so I have hit a brick wall! I require the taxonomy title to be hidden if there are no posts ...
0
votes
1answer
20 views

Run next query based on first query's term

I'm creating an authors site. I'm using a custom post type (Books) to display books. I'm using another custom post type (Reviews) to display reviews on the same page as the corresponding book. I'm ...
0
votes
0answers
17 views

include taxonomy terms in search query

I currently have a search query set up that only displays the post_type of listings in the search results, I want to amend this query to include a custom taxonomy also. I have a custom taxonomy for ...
1
vote
1answer
27 views

display posts with same taxonomy term

I'm trying to display 5 related posts in the loop, those related posts being posts that share the same taxonomy value. e.g. I have a custom taxonomy set up called venues thus each post has a venue ...
0
votes
1answer
44 views

Get the original menu item name string instead of the label

I am building a hierarchical menu of custom taxonomies and their related posts using wp_get_nav_menu_items as follow: if( $locations = get_nav_menu_locations() && ...
1
vote
2answers
43 views

Including all terms in wordpress tax_query

I'm a little bit confused, why I can't include all the terms in tax_query automatically? My code: 'tax_query' => array( array( 'taxonomy' => 'city', 'field' => 'slug', ...
0
votes
0answers
24 views

How to use tax_query other than by slug or id or solve custom taxonomy tags conflicts with pre-existing tags?

I just encountered a problem and realized that all tags must be globally unique. Here is what just happened to me: I created a taxonomy called writer and added each author and collaborator to the ...
1
vote
2answers
72 views

Display Posts of a Category in Alphabetical Order (Custom Post Type)

I have a custom post type called "link" I have a custom taxonomy for this post type called "link-category" I have a template file for this taxonomy, "taxonomy-link-category.php" I need the template ...
0
votes
0answers
18 views

Show taxonomy and custom post type in the same query

I am not sure how to raise the question, because I find all that goes in another way, I will try... I have three custom post types and these have their own taxonomies. The following is a simplified ...
0
votes
0answers
11 views

return custom taxonomy terms in post object

How would I go about returning the custom taxonomies in the post object with WP Query or with get_posts for that matter. yes, I know I can loop over my query and use get_terms or a number of other ...
0
votes
1answer
35 views

Taxonomy.php how to show post only in current taxonomy with wp_query?

Having troubles to get my taxonomy.php working good. I use a taxonomy.php to list all my posts in a specific category but it shows every post I have in all categories. Here is my code: <ul ...
0
votes
1answer
27 views

Foreach loop returning more than one item when querying taxonomy

I am querying the taxonomy terms and then listing the posts that are under those terms. The taxonomy is basically a category for a custom post type, and the terms in it are the categories. I didn't ...
0
votes
1answer
35 views

Custom Taxonomy with Custom Post Type Finds No Posts

I've created a custom post type named mfg_ppn and a custom taxonomy called mfg_pp, and they are referenced as $this->cpt_promotion_newsand $this->cpt_promotionin case you were wondering about ...
0
votes
2answers
39 views

How to get Tags with specific post id

I have created one post and post ID is 34 and added some Tags and Now I want to retrieve all tags with post ID. Any Idea?
0
votes
2answers
50 views

Order posts with custom taxonomy array

I am trying to make my loop go through the posts that are associated with these terms. Currently nothing is being output. <?php $args = array( 'post_type' => 'staff', ...
0
votes
1answer
13 views

When filtering query on custom taxonomy; main menu dissapears

I have created a custom taxonomy, and that works. But here is the problem; I have created an archive page, which in the url gets e.g. this: ?category=23. Then, in functions.php, I do this: function ...
0
votes
1answer
41 views

The next_posts_link() show me a aditional page in blank

The description Hi, I am using a custom post type and a loop through the values ​​I show. I'm using a term ($ term) that comes from a previous page in the loop to only show related items. Just for ...
0
votes
2answers
38 views

Creating two loops based on different logic

I'm trying to figure out the best way to go about this and I have part of my solution, but I can't figure out all of it. My ultimate goal is within a certain page template, to show the newest post ...
0
votes
1answer
47 views

How to display elements of different post types?

What happens is: I have a custom post type called "placas" and have an associated custom taxonomy called "firmas" and this taxonomy is the terms "LG", "AOC", "Panavox". I want to show a certain ...
0
votes
2answers
36 views

Storing/querying custom date data

I'm currently building a site where I need to filter/order/query a custom post type by date data. I can't use the post published date for this, but can't decide what would be the most efficient way to ...
0
votes
0answers
32 views

tax_query operator issue. IN works, AND never returns any results

This is a bit complicated. I have a wp_query that is almost working perfectly, but I have one issue. I think there is something here that I'm just not seeing. All of my code is an included php file ...
0
votes
1answer
75 views

Wp Query with multiple custom tag(taxonomy) by get the terms

I need to do a wp query that will get any post in custom post type that has one custom taxonomy (not hierarchical, like a post tag) or more. My current code work for one tag, but I've try for multiple ...
0
votes
0answers
48 views

urlencode error with checkboxes in wp_query using tax_query and taxonomies

I am making a search that taps into wp_query and filters thru custom taxonomy terms. It works, but I get a urlencode warning when using checkboxes to filter thru taxonomy terms assigned to POSTS, but ...
0
votes
1answer
29 views

Get custom taxonomies from multiple posts

I've been looking around for half a day now but no success so far. I've created a custom post type (recipe) and two custom taxonomies that go with it (type and cook). What I want is to be able to ...
0
votes
1answer
37 views

Custom Taxonomy List links being re-written

I am trying to show a list of terms from my Job Category. I tried the following: function job_listing_taxonomy_list( $taxonomy,$hide ) { $args = array('order'=>'ASC','hide_empty'=>$hide); ...
0
votes
1answer
97 views

WP_Query tax_query - Show results if child has parent X

I've made a custom search which includes a 3 tier custom taxonomy that looks like this: continent - country - - state The search is formatting in the above way. Here is my problem: Example data: ...
0
votes
0answers
21 views

Archive Navigation with CPT and Taxonomy [duplicate]

Need your help to find how can i put post navigation working on the taxonomy archive page. This code is in taxonomy-custom_name.php . What i need to show on this page is all posts (custom post types = ...
0
votes
0answers
43 views

Display all posts in a custom post type, grouped by a custom taxonomy term then paginate

I'm helping someone out that wants to sort their custom post type of "property" alphabetically by the value assigned in the custom taxonomy of "city" The below code works great for that: <?php ...
0
votes
0answers
67 views

Columnizing custom post type based on custom taxonomy

my first question here, so I'll try to be thorough. I have page on which I'm trying to sort a custom post type with around 350 different artists by a custom taxonomy. The custom taxonomy is basically ...
0
votes
1answer
70 views

Query custom taxonomy for category including children

I've using the Events Manager plugin which creates a custom post type of 'event' and a custom taxonomy called 'event-categories'. I have the category 'courses' which has an ID of 43. I also have a ...
1
vote
0answers
34 views

How to get the post terms from a child taxonomy

I have the following code that gets the slug of the taxonomy "author" from a custom post type "books" and gets the post from another custom post type "authors" that has the same slug. <?php ...
1
vote
1answer
27 views

Can I use OR relation for one item when calling tax_query from WP_Query and use AND for the rest?

I am trying to refine search in wordpress template. Basically I want to use multiselect with . I am using array to store selected options like this: location[]=term1&location[]=term2 etc etc. This ...
0
votes
0answers
39 views

Show Child Taxonomies in Posts Dropdown

I've written a simple dropdown script and I am looking to expand it to include the child taxonomies and posts. I'm not quite sure how to accomplish checking if there are child categories for $tax_slug ...
1
vote
2answers
45 views

Querying Term Posts in Loop

I'm trying to show my CPT Category along with any posts associated with it below the title. I have the first loop fine: <?php $cats = get_categories(array('taxonomy' => 'custtax', 'orderby' ...
0
votes
1answer
90 views

WP Query Post Type with same Taxonomy name

This is what I have: Custom Post type "Books" with Taxononies/Categories "Genre" and "Author" Another Custom Post Type "Authors" which have all author pictures and bios. This is what I want to do: ...
0
votes
0answers
29 views

WP Query Wordpress Post Type with the same Taxonomy name

This is what I have: Custom Post type "Books" with Taxononies/Categories "Genre" and "Author" Another Custom Post Type "Authors" which have all author pictures and bios. This is what I want to do: ...
0
votes
1answer
58 views

Exclude taxonomy term from all loops, but having it on widget

I have excluded a custom post type taxonomy term from all posts like this: add_action( 'pre_get_posts', 'exclude_category_posts' ); function exclude_category_posts( $the_query ) { $taxquery = ...
0
votes
1answer
43 views

Multiple loops on a Search result page?

I have a custom template that displays search results based on a plugin. The wp_query contains all the taxonomy information to show the proper posts. How can I have two loops on the same results ...
0
votes
1answer
265 views

Pagination for Custom Taxonomy Page [duplicate]

I'm having an issue getting my custom taxonomy page to paginate correctly. I looked through other examples posted on this forum, but I could not get my second page to not return a 404 error page. ...
-1
votes
1answer
48 views

Attaching multiple custom taxonomies to one CPT?

So I've been developing a complex CPT lately and something came up that made me realize I need a second custom Taxonomy on the CPT. Is this impossible? Also I'm currently using tags as well, so the ...
0
votes
1answer
78 views

Getting grandchildren of a post with a specified custom taxonomy?

I have an hierarchical custom post type called Geographies, wherein each Geography is assigned to a custom taxonomy (geographytype): Area, Country, Region or City. The hierarchy is set as follows: ...
2
votes
2answers
226 views

Paginated Taxonomy Term Archive including one post per term

I have a custom query which gets all the custom taxonomies for the custom post type and displays the latest post in each. At the moment it pulls in all the taxonomies. Is there a way I can limit the ...
0
votes
1answer
87 views

Taxonomy Parameters in WP Query to get posts from two different taxonomies

For example I have custom post type Cars and two custom taxonomies Brand (with terms BMW, Honda, etc.) and Color (Red, Green, etc.). Car must has Brand but may not have Color. So it may be like: Car ...
0
votes
1answer
525 views

custom post type paging not working past page 3

I have a custom post type called services which has 23 custom posts, i also have a custom taxonomy for all the categories (5 categories). I am trying to create a list of all the custom posts of ...
0
votes
0answers
53 views

Organize Custom Post Types by multiple Custom Taxonomies

I'm trying to sort a list of publications by type, year and month. I have my query looking first into the "type" custom taxonomy called "document" to list the different publication types. But after ...
0
votes
0answers
620 views

Query custom taxonomy term to display child terms & posts associated with term but exclude parent term

I've created a custom page-template to pull a custom post types (education) custom taxonomy (animals). What I'm trying to do is display all child posts + term (set as h2) inside the term ...
0
votes
1answer
41 views

Limiting post list by taxonomy

I currently have the following code pulling the 10 latest posts from a specific category, I would like to filter those posts to a certain custom taxonomy which I've set up called article type. What ...
0
votes
1answer
42 views

Proper way to create taxonomy queries

How to build taxonomy queries dyniamically? I have this code for dynamically creating an array for color and price: $color = $_POST['color']; $price = $_POST['price']; if (!empty($color)) { ...