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

1
vote
0answers
33 views

Using pre_get_posts to Filter Posts

I'm trying to filter archive_research.php to show only the research with status=current. In functions.php: add_action( 'pre_get_posts', 'only_current' ); function only_current( $query ) { if ( ...
0
votes
0answers
24 views

Can I Use Query_Posts() For Dynamic Filtering?

The Codex page for Query_posts() basically says "don't use query_posts". However, I have tried all of the alternatives they suggest, as well as methods from other sources, and I have had no luck. ...
2
votes
1answer
120 views

How loop through posts based on custom fields

I want to loop through posts and show only those posts for which the custom field i.e _shopis not empty I am always confused with meta query and even not sure that if this is possible using this ...
1
vote
0answers
14 views

Deleting custom post types , custom taxonomies and their data on unistalling [duplicate]

I want to delete my CPTs and taxonomies when someone uninstalls the plugin. Since the plugin is already deactivated the only way that i can do this is by issuing directly SQL statements to the db ...
0
votes
0answers
42 views

Standard WP_Query Returns No Results

Edit: found the problem. The fields I'm trying to filter on are custom fields. They were created with the "Load value based on the post's terms and update the post's terms on save" setting UNchecked. ...
0
votes
0answers
36 views

Custom Taxonomies in Custom Post Type - slug rewrite is not working

In a plugin, I have created a custom post type 'Movies' and two custom taxonomies 'Genres' and 'Studios'. For the post type, I need the permalink to be 'localhost/movies/movie-name'. So in rewrite ...
2
votes
1answer
87 views

Remove Taxonomy Slug when No Taxonomy is Assigned to Custom Post Type?

I have a custom post type called ‘sets’ and a taxonomy set up under it called ‘project’. Most of the posts under this custom post type will be assigned one project term, but not necessarily. When a ...
0
votes
2answers
32 views

Dynamically creating content on custom URL without getting 404

My goal is to have this link structure: mypage.com/item/subitem/code Code are 6 random letters and numbers. I tried with having category and subcategory, but I dislike that because then i have to ...
0
votes
0answers
10 views

List Taxonomy name of item with 2nd tax filter

I'm not even sure where to begin, or if what I'm requesting is possible. Here's the situation: I'm using a sermon plugin for a church website. (Sermon Manager). There are custom taxonomies for Series ...
0
votes
1answer
10 views

Storing content into a custom taxonomy

Currently I have created a custom taxonomy with the name "genre" and I am wondering how I can include it into the array for posting with the content from the string provided in the example. $my_post ...
2
votes
1answer
41 views

Custom Permalink Tag breaks Pagination

Most the below work stems from a previous question / accepted answer. I'm trying to achieve the following permalink structure: /listings/ /listings/page/2/ /listings/%state%/ ...
0
votes
0answers
24 views

How to add and clear custom post types and taxonomies in a plugin? Considerations for existing data

How we have to manage the creation / deletion of custom post types and taxonomies in a plugin? For example i write a plugin that creates a new custom post type and an associated custom taxonomy. ...
0
votes
0answers
20 views

Creating custom post type with custom taxonomy and custom fields programatically

I need to create a custom post type. This post type will have a custom taxonomy. Also this post type will have custom fields. I dont want to use any plugins to do it, i want to include the creation ...
0
votes
0answers
21 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
62 views

Order Taxonomy Term by date created

Trying to get the order of my custom query to display by Date created. Is this even possible with this query? Can you do a custom order? thanks for the help <?php $faq_cat_terms = get_terms( ...
0
votes
0answers
20 views

Assigning a post (custom post type) to parent term and children

I'm writing a script to import store listings into WordPress. The taxonomy structure consists of: State (Parent) > Region (Child) > Sub-Region (Child of region) > City (Child of ...
0
votes
0answers
38 views

Insert a custom taxonomy as a class in acf gallery loop

I am almost there, but not sure how to echo out a custom taxonomy as a class into my div containing my image. (see all the stuff below). All of the tutorials I see talk about using wp_query and then ...
0
votes
1answer
30 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
70 views

Custom Query to display posts with custom field

I am running into an issue with a custom query for displaying my posts and am having no luck on the Wordpress Forum nor the plugin forum I used to create the Custom Post Type. Here is an overview... ...
0
votes
0answers
50 views

Is it possible to group ACF Fields for a custom post type?

I have structure like this: District (taxonomy) --municipality (custom post type) - ACF Group (with fields assocation and contact) I have created a group in Advanced Custom Fields where fields ...
1
vote
1answer
53 views

Display custom post type in hierarchical order with get_terms

How can I display a custom post type of products with a custom taxonomy (product category) in a list, in hierarchical order? I'd like to get them in this order: h3.parentcategory 1 ...
0
votes
1answer
66 views

How can I select a primary category?

I'm looking for a plugin or suggestion on how to select a primary/main (custom taxonomy) term in a custom post type. For example, I'm developing a Wordpress website for Musicians. I have a custom ...
0
votes
2answers
54 views

Custom taxonomy archive templates not found

I've created a custom taxonomy register as the code below, but it does not find the taxonomy-specialty.php nor archive.php templates (page not found error). I did following (as recommended by other ...
0
votes
1answer
54 views

Three Most Recent Posts, One Per Term

I'm trying to figure out how to write a custom query for a Custom Post Type, and Taxonomy where I would retrieve the most recent posts, but with a twist: only one post per unique term. So if I ...
0
votes
0answers
31 views

price filter for easy digital download

i have a website with easy digital download plugin, but this plugin not have a price filter like woocommerce. i have search on google and i have found this free and paid plugin ...
0
votes
1answer
22 views

How to get posts by category and by choosing a taxonomy term?

I'm new to Wordpress and I've managed to build most of a full custom theme for wordpress on my own. But the tricky stuff is starting to show its tail, and I've spent the last days stuck on ...
0
votes
0answers
11 views

YearWise Categorywise Post

Please help me to display yearwise as categorywise post using as custom post type and custom taxonomies category name like eg:
0
votes
0answers
309 views

How to Fix Wordpress 500 Internal server error due to custom post type

I am using couponXL theme for my site. Everything is working correct but except one ie., custom post type. In the theme , there is a plugin called CouponXL custom post type. This plugin is included to ...
0
votes
1answer
51 views

Custom post type with custom taxonomy permalinks

I've looked around but can't find a decent solution. I have a custom post type that adds businesses. In the loop it will list all by default but I want to be able to attach an event category to ...
0
votes
0answers
23 views

adding price to product rss feed

I'm trying to include the price in the product rss feed on my site. I've taken the code below from another post on this site. However for some reason its not working. My php knowledge isnt good ...
0
votes
0answers
18 views

Custom taxonomy save only last checked category

I create custom post_types and custom taxonomy. I want save post in more one category (taxonomy). Taxonomy -> hierarchical. When I cheked more one category (taxonomy) post save only first or last ...
0
votes
0answers
13 views

Change the priority of multiple custom taxonomy metaboxes

This question has been answered here... Changing the priority of a custom taxonomy's metabox But I need more clarification... How does this work for multiple custom metaboxes? Let's say the ...
0
votes
0answers
44 views

add_rewrite_rule using custom taxonomy and year

I have a CPT called books and a custom taxonomy called genre and need to show in a page all books of a specific term and a specific year. For that, I created taxonomy-genre.php file and created a ...
0
votes
2answers
63 views

Custom taxonomy in custom post type archive with pagination

I have inmy opinion something simple that needs to be done but I can't get it to work. I have a custom post type adm_project with rewrite => array('slug' => 'projecten') add_action( 'init', ...
0
votes
0answers
10 views

wp_query not returning results on tax_query [duplicate]

Here is code to start the question function myfunction(){ global $wpdb; $search_string = urldecode($_REQUEST['s']); var_dump(get_term_by('name',$search_string , 'gift_tag' )); //This ...
0
votes
1answer
47 views

Same permalink structure for all post types?

We have a pretty complicated site that has a lot of different custom post types. Each of the post types has an array of custom fields and stuff like that. Also I have added the ability to organize ...
1
vote
1answer
111 views

How to Filter Posts by Custom Fields?

I would like to learn the best way to filter custom post types by custom fields. In the example I am working on, I use custom taxonomies to organize my posts and filter them. I would like to add ...
2
votes
2answers
103 views

Filter and list posts of a custom taxonomy

I have a custom Taxonomy called 'owner' and it has multiple posts as owner names (Using as a category) so I can filter posts by 'owner' taxonomy. I'm trying to make an index page of all owner names ...
-2
votes
1answer
45 views

How much worse is querying custom fields compared to custom taxonomies, quantitatively

OK, I know (because i've read it many times) why custom fields is less efficient than custom taxonomies when it comes to querying/filtering posts, but just how inefficient is it by comparison? I'd ...
0
votes
0answers
12 views

How to create relations in several levels taxonomies and custom post types?

I'm not sure how to implement a taxonomy / custom post type relationsship correctly here (as a good practice) Level1 --Level2 ----Level3 (contains unknown X nr of descriptions) -----Level4 ...
0
votes
2answers
70 views

Adding a custom post type taxonomy template in plugin

I've created a custom post type named "accommodation" and taxonomy for it named "categories" using the file "taxonomy-accommodation-categories.php" - this is working fine in my WordPress theme. But I ...
1
vote
0answers
117 views

Add hierarchical taxonomy to permalink for custom post type

I've found various questions about this issue, and I still can't get this to work. I have a post type called "product" and a taxonomy called "type". I'd like the URL for a single product post to be: ...
0
votes
0answers
87 views

How to get posts ORDERBY a custom taxonomy term's custom field?

I have a custom taxonomy program_taxonomy : /* register a common taxonomy for DRAMAS & reality_shows to get post by terms in PROGRAMS page */ register_taxonomy( 'program_taxonomy', array ...
0
votes
0answers
84 views

Best way to group posts based on custom post type terms

I have been trying to group custom posts based on the taxonomy terms as shown in this article. Here is another similar post: Display all posts in a custom post type, grouped by a custom taxonomy ...
0
votes
1answer
25 views

How to get hierarchical number of custom taxanomy

I have custom taxonomy some thing like : Item - A Item A-1 Item A-2 Item A-2-1 Item A-2-2 Now i want to get what is the number of hierarchical number of Item A-2, if we start from 0 it ...
0
votes
1answer
59 views

Looping Through Custom Tax Terms and Displaying All Posts For Each

I'm using the following code to attempt to loop through each of the terms within my custom taxonomy category-film and then output the term name as a heading together with displaying all the custom ...
1
vote
0answers
13 views

Correct procedure for advanced permalinks

I've googled this extensively, but can't get my head around it. I have a few custom post types and a taxonomy (location). I can access all the post types in a location via: ...
0
votes
0answers
36 views

Index.php Not Showing Custom Posts / Terms

I have my index.php page set up and is displaying my posts page as well as category archive pages without any issues. The problem however, is trying to display posts for custom taxonomy archives. The ...
0
votes
1answer
25 views

How to create a second set of tags that use the same slug or URL?

Is there a way to create a second set of tags that can use the same slug or URL? Normally, an example set of tags will look like this by default on a WordPress blog page: ■ tag1, tag2, tag3, tag4, ...
1
vote
0answers
48 views

How to add custom taxonomy slug in CPT permalink?

This is the code i have until now to add a CPT articles and taxonomy articles-category. The code works, sort off. The pages are displaing correct (when i access them directly): articles/ ...