The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
19 views

Object of class WP_Query could not be converted to int inside shortcode

I have the following code which is used to display download posts by the custom taxonomy. I am receiving the error Object of class WP_Query could not be converted to int When I have Query ...
0
votes
1answer
38 views

Custom arguments in WP_Query

I am working on a Wordpress theme i.e. Directory engine. It is having a filtering functionality in the header based on taxonomy term slug. I just want to know from where this tax_query is generated ...
1
vote
2answers
1k views

Custom Post Type Taxonomy Filters

Im really struggling to piece this functionality together, and hope someone can help or provide snippets to get me there. So I'm creating a section on a website where stories are published, I have ...
2
votes
1answer
26 views

Taxonomy.php issue with search and filters [Solved]

I'm trying to create a custom taxonomy.php page where my users can refine search into that context. I've tried to create a kind of loop like: <?php if(!empty($_GET['ending'])) ...
0
votes
0answers
19 views

ACF Meta Query on Taxonomy Fields

I have some custom fields on a taxonomy. I'd like to be able to pull a list of the taxonomy based on those custom fields. I know it use to be possible using a meta query, but now that the custom field ...
0
votes
0answers
18 views

Registering and assigning Custom Taxonomy directly through SQL

I'm running a PHP script that pulls property listing data from a RETS server and inserts the listing date into the WordPress database directly with SQL queries. I'm not using any WordPress functions ...
0
votes
0answers
15 views

Assigning custom-single.php based on category

The code below looks like exactly what I need but I dont know how to update it to work for 3 custom single.php files plus the default single.php for any other posts not in one of these 3 categories (...
0
votes
0answers
22 views

Display taxonomy child only if parent is current

I have 4 level wordpress taxonomy tree. I want to display as category list and display child only when parent is current category. There is my code <?php $term_list = wp_get_post_terms($post->...
1
vote
0answers
23 views

How to get the terms of taxonomy from posts that have terms from another taxonomy? [duplicate]

I have Woocommerce shop with several product categories, custom taxonomies and ACF meta fields. So one product has one category, terms of taxonomies and meta fields values. For example, we have ...
0
votes
0answers
77 views

Dynamic Multiple Taxonomy & Ajax Filtering

I am dynamically generating some taxonomies and then using the terms to create checkboxes on the frontend. I would like to filter posts depending on what is checked. If multiple checkboxes are ...
0
votes
0answers
38 views

Create a custom taxonomy archive to pull categories that have two matching taxonomies

I'm trying to create an archive page for a custom post type that will pull in taxonomy categories that match two per-determaned taxonomies. I do not need to display the products on this archive page. ...
1
vote
0answers
20 views

Search Tool only refreshes Page without showing results

I have a search tool that allows you to search plants based on multiple different taxonomies (Color, soil type, type, ect.) Each plant is set up as a post using ACF. You can search for plants based on ...
1
vote
1answer
161 views

Taxonomy , subtaxonomy,child taxonomy of a product woocommerce

Hi i need to get the main taxonomy and sub taxonomy of a product in woocommerce . i know how to get taxonomy details .123 is product id . $terms = get_the_terms(123, 'product_cat'); I know how ...
3
votes
1answer
122 views

SQL Statement generated by WP_Query not producing expected results

I am trying to alter WP_Query on the pre_get_posts action hook, for filtering the posts returned, depending on the built-in category and post_tag taxonomies. I would like that the only posts returned ...
1
vote
0answers
63 views

Combine multiple custom user taxonomy in single url

I have created custom user taxonomy for user and its working good. Reference guide:- http://justintadlock.com/archives/2011/10/20/custom-user-taxonomies-in-wordpress Bellow is structure of taxonomy ...
0
votes
0answers
30 views

Custom Taxonomy archive ordered by Category

So i have this site where the content is organized with a custom taxonomy 'Tracks' and regular categories. what i am trying to create is an archive for any given track that looks like catgory for ...
0
votes
0answers
86 views

Search by attributes or taxonomy

I'm trying to filter products by taxonomy or attributes, but I think the function has something wrong: global $woocommerce, $woocommerce_loop; $attribute = 'color-de-piel'; $values = 'Blanca'; $...
1
vote
0answers
18 views

Taxonomy in woocommerce

Create brand taxonomy WooCommerce As I can list for each brand product categories that have ? For instance : If there are products Acer , in the category servers, accessories, and desktop . And ...
0
votes
1answer
35 views

I have custom post type with custom taxonomy. But not found the taxonomy page..

this is my link. http://redesign.conei-sa.com/apps_cat . not found . My code in function.php. function prefix_register_post_type() { register_post_type( 'application', array( ...
0
votes
1answer
1k views

Display only first level children of my custom taxonomy categories

I'd like to display only first level children of my custom taxonomy categories I'am using wp 3.8 I've something like for my taxonomy "listing_category": Category 1 SubCattegoy1 Subsub category1 ...
0
votes
0answers
6 views

I'm looking for a plugin or solution to make taxonomy pairs or groups

I have two different custom taxonomies. First taxonomy contains name of competition (City competition, Country competition). Second contains type of win (winner, top21, top100). And every post can be ...
0
votes
0answers
40 views

Need advance search for custom post with 3 custom taxonomy

I need Advanced search form, I have 1 custom post type ('results'), And i have 3 taxonomies for the custom post, 3 taxonomies name is Year, Class, semester. Taxonomy register type is Year = ...
0
votes
1answer
71 views

List active taxonomy terms

I'm working on tweaking a template which has a filterable masonry layout. I made a taxonomy-categories.php and for the filtering I need the terms of the active taxonomy. The template which I'm using ...
0
votes
1answer
109 views

Display List of Categories Within a Custom Taxonomy

My website is an online magazine, so I have a custom function that creates a taxonomy (Volume/Issue) for Posts and Pages. Each issue of the magazine has its own particular category (e.g. News, Alumni,...
1
vote
1answer
55 views

Get posts by querying taxonomy and certain terms of the taxonomy?

I have a taxonomy called schedule_day_taxonomy add_action( 'init', 'schedule_day_tax_func' ); function schedule_day_tax_func() { register_taxonomy( 'schedule_day_taxonomy', '...
0
votes
0answers
57 views

Filtering posts in query

I might be way over my head with this one, but I'm trying to get WP to filter posts by two taxonomies (categories & kategoriat) and one custom meta value (date), so you can filter between dates ...
0
votes
0answers
45 views

List post categories with a custom taxonomy term assigned

I have one custom taxonomy called 'p_type' with 'news' as one of it's terms. All of my posts have one or more categories assigned and a part of them also has 'news' as a custom taxonomy term assigned. ...
0
votes
0answers
101 views

salary range filter doesnt work when value higher than 75 000

I' having a big issue to create a salary range filter... I have one custom post type job - with a custom taxonomy for the salary. The salary are all put as a range' exampple: 20 000 - 40 000 using ...
0
votes
0answers
59 views

sorting posts (custom_posts) in author page

I want to sort posts (taxonomies) in my authors page, i want to sort them only by there one posts an have the right to edit them. I've try ed select elements but it shows results from search.php
1
vote
1answer
174 views

Multiple loops on page only show taxonomy name of first loop

I have a page with a custom post type called 'books', with taxonomy 'booktypes'. The books are ordered/divided in a loop per taxonomy-item, and added via shortcode to the page editor like this: [...
0
votes
0answers
34 views

Filter search result by either a taxonomy1, or a taxonymy2, or both taxonomy1 and taxonomy2

I'm trying to build a search site for non-profit website, where dog owners can find restaurants (in selected city and with selected cuisine type) where they will be let in with their dog. The problem ...
0
votes
0answers
53 views

taxonomy query on front page

I have a custom taxonomy query that fails when the page is set to be the front page. When the page is not set to be the front, it executes without issue. My client has a highly-customized WP install: ...
2
votes
2answers
8k views

How to add images to taxonomies?

Q: Is it possible to add images to all of my taxonomies (default and custom ones)? Note: I do not want to use any plugins (not my favourite solution for design related matters). Usage: I want to ...
0
votes
1answer
78 views

Custom loop - Isolating post meta output depending on current query taxonomy terms

I have started constructing is a page to display a series of products based on certain criteria. Each product is part of two separate taxonomies, one for brand and one for product size (each product ...
0
votes
1answer
45 views

How to have multiple instances of the same taxonomy in a search form

I'm trying to have two separate search fields for tags on a search page on my Wordpress site, but it seems have a duplicate instance of a taxonomy breaks the search functionality. <form method="...
1
vote
1answer
82 views

Include posts from feature category in pre_get_posts

I have two custom taxonomy 'cities-taxonomy' and 'userfeed-taxonomy' and I am excluding all the post which has these taxonomies assigned in my blog page using pre_get_post(); Here is my query ...
0
votes
1answer
195 views

How to show amount of post in a taxonomy with advanced custom fields?

I am trying to display the post count of some taxonomies. I have a custom template that I am showing some taxonomies on. I am using advanced custom fields to assign each repeater field to a taxonomy....
0
votes
1answer
117 views

How to convert query sql to shortcode in wordpress?

I want to make a shortcode like this [myshorcode:2:drinks], and query-wrangler I have managed to get the following query that shows me 2 products of a certain taxonomy PHP WP_Query: $query = array ( ...
0
votes
1answer
921 views

Taxonomy search/filter with multiple taxonomies and multiple taxonomy terms

I am trying to build an advanced search form that allows users to select from two taxonomy based drop down menus. Each taxonomy drop down has taxonomy terms from which the user can select multiple ...
0
votes
0answers
17 views

Getting associated taxonomies

I am in a bit over my head with this one, so I'm hoping someone can point me in the right direction. Project Background I am working on a project that involves a complete overhaul of a site that ...
4
votes
1answer
6k views

How to pass URL parameters for advanced taxonomy queries with multiple terms for one custom taxonomy

This answer provides the code for a query that returns an OR match on a taxonomy term: global $query_string; $args['tax_query'] = array( array( 'taxonomy' => 'status' ,'terms' ...
0
votes
1answer
66 views

Use Tags to Query Associated Multiple Posts and Get The Average Of Custom Field Values

I have created a custom post type named “Rating” that I’m using to add customer rating sections to my website. Each rating post has the ability to have a: Title Comment section Featured Photo ...
0
votes
0answers
186 views

Removing taxonomy query by pre_get_posts

I would like to remove taxonomy related SQL query part from the main query. I am trying to use pre_get_posts posts_where filter. An example of original not modified query WHERE part: WHERE 1=1 AND ( ...
0
votes
0answers
85 views

Custom Post Type Taxonomies

I have successfully looped through the taxonomies that I set up for a custom post type, and you can see that here: http://www.methodsconsultants.com.php53-13.dfw1-1.websitetestlink.com/tutorials/ ...
0
votes
1answer
6 views

Extend taxonomy term page with other posts

I have a simple taxonomy term page which lists posts connected to a specific term. I would inject some different (not connecting to that term) posts into that loop. I tried pre_get_posts action but no ...
0
votes
1answer
325 views

List posts of terms but exclude one term

I have a Custom Post Type for "Products" with a Custom Taxonomy of "Product Line." I've set up a page to list out the Products by their Product Line. However, we're also using a Product Line of "...
0
votes
1answer
68 views

modify strip_tags function to use term slug instead of term name

I have a small function to get post categories from a custom taxonomy and modify their url, but now I have multi-word categories I need to modify it to use the category slug instead of just the ...
0
votes
1answer
437 views

Custom post type (Jigoshop): unexpected value for $category_id (via $term->term_taxonomy_id) on live server

I have hacked together a function to spit out the category description for a Jigoshop custom post type, along with its associated image. (The product_cat image field is implemented by the Jigoshop ...
0
votes
1answer
227 views

Get list of CPT posts in *current* post's taxonomy term

I've seen dozens of similar but not quite the same questions - It seems easy enough to do a wp_query and get a listing of posts in a given CPT, and sort by a given taxonomy term. However, what i can't ...
1
vote
1answer
140 views

How to group posts and get a mixed posts and groups view?

Let's say i need to implement the following in WordPress : I have a CPT named 'song' which are single songs from different artists. Sometimes songs may be grouped by albums, but not always. Then i ...