The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
2answers
29 views

How to count the number of terms in a taxonomy

I have a custom post type "Services". It has a hierarchal taxonomy of "service-category". Service-category has both parent and child terms. I need to count the number of parent terms in the ...
0
votes
0answers
11 views

User autonomous tags for custom post types

Is it possible to create a taxonomy ( or other ) system such that each user on a WordPress system could have an autonomous tag setup which they could use to order custom posts. For instance: There ...
0
votes
0answers
11 views

Taxonomy structure advice - ZIP Codes and Regions

In a new site I am building I need to have three different custom post types (people-type1, people-type2, events) organized by Region, but searchable by zipcode. For example, a user would type his ...
0
votes
1answer
73 views

tax_query showing no results

I'm creating a music database site with two custom post types: tracks and albums. I've linked the tracks to their respective albums with a custom taxonomy for the album's slug. On each album page, I'm ...
-1
votes
1answer
59 views

Can One Taxonomies Terms be Ordered by A Seperate Taxonomy?

I need some advice. I have a post type called "Movies" for example. Inside Movies, I have two taxonomies: Genres and Ratings Under Ratings my terms are 5 star, 4 star, 3 star, etc. Under Genres ...
0
votes
1answer
24 views

get_term_link is Ending to single.php

I have a template like this: page-movie.php taxonomy-movie.php taxonomy.php and I am using the get_term_link() at page-movie.php to list and link from the indexed page into List of all Custom ...
1
vote
1answer
78 views

How do I taxonomy terms based on terms they are used alongside?

How do I get all of a single taxonomies terms that have one or more particular sibling terms? For example, let's say I have the following taxonomies. Terms are listed underneath the taxonomies, and ...
0
votes
1answer
27 views

get all levels parents from id term

I have a term referenced by $id. The term is inside a tree of levels. rootlevel parent (parent=0) first level parent second level parent ... ... last ...
0
votes
0answers
61 views

WP_Query on “property” in the options table

I'm quite new to WP and I hope this question isn't seen as too specific. It's not entirely bound to my little "pre story". I'd really like an answer to this question for future cases as well. I get ...
0
votes
1answer
36 views

Next/Previous links in custom taxonomy, where item may belong to multiple terms

I have a CPT of 'Projects' and a custom taxonomy term tied to that called 'Sections' (basically the same as 'categories' I just find it clearer to use a different term name on a CPT than on standard ...
0
votes
1answer
42 views

How to query authors by custom taxonomy?

I have a custom taxonomy for users which is country. Is there a way to query all admins by term_id or should I get all users and check each one with a for loop? I tried this: $user_query = new ...
0
votes
1answer
39 views

Exclude specific terms from all queries using posts_where or something similar

Basically what I'm trying to do is exclude all posts that belong to a specific set of terms from showing in any and all queries across the board, EXCEPT when you're actually viewing that post or page. ...
0
votes
1answer
31 views

Include Category With Tax Query

I'm using The Events Calendar plugin but I thought I'd post it here as I believe this particular function works the same as get_posts(). I'm trying to use the function to display only posts from one ...
0
votes
0answers
65 views

Get all the terms and pass them as values for a shortcode parameter?

I'm using a WP theme which has the food_menu custom post type set up and the food_menu_categories* as its taxonomy. I'm not a developer, so I apologize if I use wrong terms regarding php/wp/ ...
0
votes
1answer
57 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
0answers
16 views

Displaying four post types sharing one taxonomy

I was hoping somebody could help me. I've created a custom taxonomy 'members' that is shared by four post types - posts, pages, resources, and news. I've then added five terms using this 'members' ...
3
votes
1answer
189 views

WP_query taxonomy + get all posts with two terms from same taxonomy

This is a follow up question to Add_query_arg + two times the same argument? I want to get the post count from all posts tagged with 2 different tags from same taxonomy $args2 = array( ...
0
votes
0answers
29 views

Add newly created “genre” taxonomy to front end page

I have extremely limited web development knowledge so please be cool, and sorry if my questions are low level...I do not mean to be rude in any way... I am creating a website ...
0
votes
1answer
64 views

Modify users.php query with multiple taxonomies

I've successfully created 3 taxonomies attached to the user object, using the registered_taxonomy and update_count functions of this code - ...
0
votes
1answer
36 views

Primary Taxonomy for Post

My blog posts have have multiple items from my custom taxonomy attached to them. For the sake of this post lets just use Tags taxonomy... So a post may contain 4 tags, is there a way I can select one ...
0
votes
1answer
28 views

Querying posts globally based on custom taxonomy with its own taxonomymeta table

I have gone through the process of creating a custom taxonomy + admin panel for a custom post type in my site. These taxonomies store various meta data in a wp_taxonomymeta table and use ...
0
votes
2answers
40 views

Loop in taxonomy for terms and post

I'm having trouble getting this to work. I've created a custom taxonomy named article_subjects and am looping thru, displaying each term; but am trying to get the newest post for each term ...
0
votes
1answer
34 views

Linking custom taxonomies and posts

Im trying to figure out how to display data from custom post's into a custom taxonomy in a different post type. I currently have 2 sections. Work & Talent. Work will display individual ...
0
votes
0answers
44 views

Integrating WP_Query with multiple Checkboxes

Ive created a CTP called volunteer_position_cpt ... I've also created two taxonomies for this CPT: volunteer_category (tags) and location_category (tags) My interface: [ ] Category 1 [ ] Category 2 ...
0
votes
1answer
35 views

check if a taxnomy queried in $wp_query?

Is there a way to check if there is any taxonomy that has been queried in the global $wp_query?
0
votes
0answers
65 views

advanced loop custom taxonomy get posts and tax by country

i have a custom post type name ads and adv categories name ads-cats and adv country called country i listed in the front page all categories and sub categories i want when i select a country the ...
1
vote
1answer
82 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
0answers
28 views

Exclude posts which have any term in a certain taxonomy from the query

I have a custom taxonomy, and for a certain query I am doing, I want to retrieve all posts which do not have any terms of that taxonomy assigned (for example, they are tag-less). At the beginning I ...
0
votes
1answer
303 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
233 views

List post in wp-admin and sort them

this is my first public plugin called Sort posts in taxonomies. With the plugin I intend to list regular posts and custom post_types in the Category(Taxonomy) edit page in wp-admin. Further give the ...
0
votes
0answers
71 views

Query posts filter not working

I have created one custom post type which name is villa. In this post type I have added five post and assigned custom field values(mention bellow): Post Name Assigned Fields 1. Chalet ...
1
vote
1answer
89 views

Custom taxonomy [year] is directing to yearly archive

My custom taxonomy is linking to yearly archive instead of the post linked to it. I have created a custom taxonomy named "year" containing int (i.e 2008,2009,2010 etc). Have registered the custom ...
0
votes
0answers
76 views

Hiding an Advanced Custom Field based on Taxonomy Field selection

I am trying to to show/hide one advanced custom field based on the ACF taxonomy field without any luck. I have tried reworking this example a bit to fit my needs but nothing happens. Any ...
0
votes
0answers
19 views

WP query taxonomies not the same as output

I'm trying to build a custom query and I need to include the current category ID. I previously had the WP_Query args as: Array ( [post_status] => publish [posts_per_page] => -1 ...
0
votes
0answers
35 views

Display posts with custom post type and custom taxonomy

I have several different post types, and those post types have the same taxonomies linked to them. When I click one taxonomy, all of the different post types in that taxonomy is displayed. I ONLY want ...
0
votes
0answers
87 views

Display a Page of Results from Multiple Taxonomy Queries

I created a theme for a client with three CPTs and a Custom Taxonomy for each CPT. It is currently set up as CPT > North, South, East, West Each CPT has the same categories > activities, dining, ...
0
votes
2answers
43 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
40 views

How to exclude a taxonomy term using url alone

This may have been answered somewhere but I may not be searching for the right wording or my concept is just way off :-) In a nutshell: If I have a url like this: ...
0
votes
1answer
143 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
10 views

How to include taxonomy.php from wp-includes the proper way? [duplicate]

I tried including taxonomy.php from wp-includes folder in my custom php script (which is called by jquery) but I get this error: Fatal error: Call to undefined function add_action() in ...
0
votes
1answer
263 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
138 views

How to List Custom Post Type Titles Based on Theirs Taxonomy Terms Inside a Nested Loop

I am trying to list at least the last three updated Custom Post Type's title lets call it "Cast" inside another loop which is listed based on the Taxonomy terms called "Actress" I used the following ...
0
votes
1answer
492 views

How to modify the query in taxonomy-custom.php to sort term archives by a custom meta field?

I am trying to create theme pages for custom taxonomy terms in which the archives are ordered by a custom meta field. I can do this with a new wp_query as follows: <?php ...
0
votes
1answer
254 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 ...
0
votes
1answer
1k views

How to add images to taxonomy terms? [duplicate]

Could it be done or not? E.g. I want to be ble to upload an image when creating a new taxnomy term. So, when I create a new term called Mercedes in my custom made taxonomy called brands how can I ...
1
vote
0answers
60 views

Automatically Query Parent Taxonomy

I have a custom taxonomy on my site that I query from the sidebar of the currently displayed term. Say I am on the Term X archives, then my custom post type of Products with the term of Term X are ...
0
votes
0answers
63 views

Tax Query is only showing normal posts, not Custom Post types too?

This has been bugging me for the best part of a day now, so I'm appealing to help in order to calm my nerves. I run a site that has many custom post types. Every post type shares the use of the ...
0
votes
1answer
67 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 ...
2
votes
2answers
300 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
111 views

How to list tags from custom post type attachments?

So I am trying to list out all the tags created for images uploaded within my custom post type only. I added in a snippet of code to my themes functions.php file to enable media categories and tags: ...