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

4
votes
0answers
759 views

Display one post from each term in a custom taxonomy

I am trying to display a list which shows one post (and information about the person posting) from each custom taxonomy term. The code I am using is as follows, but it is instead printing out EVERY ...
3
votes
0answers
72 views

Hook to process a new taxonomy tag before it is created?

I am working on a website where there is a custom taxonomy for places, which can be either cities or states. The users are supposed to tag each post with a city and a state. To deal with ...
3
votes
0answers
369 views

Create Custom Post Type Archive Page with Sub Categories Navigation Sidebar

I have 8 custom post types (which are actually for 8 different blogs and used as "blog landing pages"). Each custom post type is also a Blog Category and each has several sub categories to it. For ...
3
votes
0answers
296 views

How to display term description in empty terms archive?

I list all terms from a taxonomy, even the empty ones, but I found out that at least in 2010/2011 themes I got a 404-like message, the default seems to only display the term description when at least ...
3
votes
0answers
751 views

I want to load post content by categories using Ajax

I have question. I would like to load post content, custom post, depends on category. So first of all I would like to have drop down menu which will list all my categories then once user will select ...
2
votes
0answers
44 views

has_term or in_category for Custom Post Types

I have property as a custom post type. I want to display a specific message if the property is in the sold category. To do that, I'm using the function below: if ( has_term('sold', 'category')) { ?&...
2
votes
0answers
45 views

Filtering a custom post type by custom taxonomy in archive template

I've seen this question posted in different forms before, but most of those solutions are centered around the admin interface, and I haven't found any answers that apply to the front end. I've got a ...
2
votes
0answers
22 views

get / list categories and counts filtered by custom taxonomy term

In my post 'post type' besides "categories" I've a custom taxonomy called "product-types". The category is actually more "manufactures" of the product types. I've a product-types page where I list ...
2
votes
0answers
27 views

Custom Taxonomy and tax_query Issue?

I am working on Plugin development and my plugin name is plugindev.I have a custom post type called team.I have a custom taxonomy Team_Category which is being registered by this code /****************...
2
votes
0answers
36 views

Creating Custom Taxonomy With mapping to post type

I just want to create a custom taxonomy for my plugin use but this should not be liked with any post-type and also i need to add the menu in my custom admin menu (Which i have already Created). I ...
2
votes
0answers
267 views

Display Terms for all posts in Current Archive or Query

I am using the following code to create a list of linked terms belonging to a taxonomy. <?php $taxonomy = 'taxonomy_name'; $queried_term = get_query_var($taxonomy); $terms = get_terms($taxonomy, '...
1
vote
0answers
12 views

get the taxonomies terms associated with users

I’m building a search form with meta_query to get users based on meta_key and meta_value. Some meta_key are taxonomies. It works very well but in my select, i have all terms and some terms are not ...
1
vote
0answers
13 views

Assign terms to new capability for all taxonomies

I would like to move the ability to assign_terms away from edit_posts and allocate it to a generic_capability so that whenever new custom taxonomies are created, anyone can assign terms, but do not ...
1
vote
0answers
34 views

register_rest_field for custom taxonomy fields that are assosiated with custom post type

I am trying to register a rest field for my custom taxonomy's custom meta fields. I followed the tutorial at Modifying Responses . The code worked great for adding a rest field for post meta data for ...
1
vote
0answers
27 views

How to rewrite post slug to prevent adding number

The basic idea to add same slug to different custom posts with different categories: http://example.com/gallery/category-A/postname/ http://example.com/gallery/category-B/postname/ But I'm getting ...
1
vote
0answers
16 views

taxonomy tax-name archive

I am creating a taxonomy $labels = array( 'name' => $name->labels->name, //genre 'singular_name' => $name->labels->singular_name, //genre ...
1
vote
0answers
19 views

Query with relation and one without relation using multiple taxonomies?

I'm trying to use one query for two queries, one with an and relation and one without without having to do multiple queries and loops, is this possible? <?php $args = array( 'post_type' =>...
1
vote
0answers
49 views

Category base to url in custom post type/taxonomy

I'm building a recipe site that uses custom post types for recipes. So I searched for including the custom post type categories in the url and found a solution below by Milo. It rewrites the url and ...
1
vote
0answers
59 views

How to display an other custom post type in a different custom post type's archive?

Background: I need to display all posts of a custom post type called "recipes", that have a specific taxonomy "fish", right under the permalink "www.mysite.com/recipes/fish". What I have done: I ...
1
vote
0answers
37 views

Show custom post type inside a custom post type

I am kind'a new to wordpress and i need some help. I am building a website that contains articles. in each article page i want to show the writer details(image name and short description). I have ...
1
vote
0answers
37 views

Custom while loop for hierarchical display of a taxonomy

I'm trying to build an automated mega menu that loops through all product-category terms and displays them in a hierarchical underscored list, as well as including post in each term. For example, let'...
1
vote
0answers
26 views

Render P2P metabox per taxonomy term

I would like to display a Posts to Posts connection registration metabox for each term in a custom taxonomy. The post connection candidates will be split across the metaboxes depending on their term. ...
1
vote
0answers
43 views

Widget Logic use with Custom Taxonomy

I am using Widget Logic and attempting to use the new WPAdverts plugin to display classified ads. They use a custom taxonomy of taxonomy=advert_category&post_type=advert. I'm trying to display a ...
1
vote
0answers
20 views

Terms showing up in object cache on unrelated pages

This is perplexing. I'm running Debug Bar on my dev site. I noticed today that the object cache reporting shows memory taken up by terms I've created using register_taxonomy when not on pages ...
1
vote
0answers
26 views

How to show custom taxonomy in the permalink?

I used the Portfolio Post Type Plugin to create custom tax and post type. I would like to show the custom taxonomy on the portfolio projects. portfolio/customtaxonomy/project while now is ...
1
vote
0answers
22 views

Lists custom taxonomy terms that has specific custom field value assigned to the term (not post)

As title reads, I am trying to list specific custom tax's terms in a custom post type archive's page. My setup: Custom post type: 'podcast' Custom Taxonomy: 'showname' -> Custom Field for above ...
1
vote
0answers
21 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
0answers
33 views

Search form not working with custom query?

My search query doesn't seem to work, the query in my url is all correct but the content just refreshes without finding the posts with the search term.. I got a custom search query and a function to ...
1
vote
0answers
32 views

Wordpress thinks my custom taxonomy pages are search pages #seo

I have set up a custom taxonomy for regular posts called guide. I have a template file called taxonomy-guide.php which lists out posts with a guide taxonomy. So my URL structure appears like this: ...
1
vote
0answers
75 views

Add Taxonomy Subcategory To Permalink

I am using a custom post type (job_listing) and custom taxnomy (job_listing_category) via the Job Manager plugin. I came across a guide in the plugin's documentation, to "add the Job’s category name ...
1
vote
0answers
15 views

Get the taxonomy of a post hierarchically

I would like to get all the taxonomy of one post (in a loop), hierarchically. Example I have those taxonomies, and the ID of the tax in bracket. Tax1(1) -Tax2(3) --Tax3(2) I would like to gather ...
1
vote
0answers
33 views

Filter custom taxonomy archive posts by 2nd custom taxonomy using select dropdown

I have a CPT called 'online-lots' for displaying items in an auction. The posts are grouped by custom taxonomy called 'sale' (e.g. '07_15 July Sale)', meaning that a whole catalogue of items can be ...
1
vote
0answers
64 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 ...
1
vote
0answers
22 views

how to change permalinks format for pagination?

Sorry if my question was basic or stupid. Please help me how to do this in wordpress, i m new to wordpress. I have permalinks for pagination page like this www.website.com/customtaxonomy.html/1 www....
1
vote
0answers
35 views

How to show all post related taxonomies

I created several custom taxonomies for default WP post type. Does anyone knows any widget solution or have any idea for this: How to show (in sidebar) all post related taxonomies? Example: If we go ...
1
vote
0answers
89 views

Select multiple categories from CPT to display in LayersWP builder widget

I am currently developing a LayersWP child theme and have registered a portfolio custom builder widget. In this widget I would like users to be able to select the categories that they want shown. For ...
1
vote
0answers
271 views

How to add custom field to custom taxonomy in 4.4

I have a custom taxonomy for cities, and would like to have this available as a custom field to be able to access it using the iOS Workflow app. Considering the changes in 4.4 what should I do if I ...
1
vote
0answers
41 views

Adding custom taxonomy in same menu place with two custom post types

I have registered 2 post types: register_post_type( 'post_type1' , $args1 ); register_post_type( 'post_type2' , $args2 ); And I've registered a custom taxonomy associated with the second post type: ...
1
vote
0answers
137 views

How to make custom taxonomy into drop down select in a custom metabox

I have a custom post type that I am creating custom meta boxes for on the "Add New Post" screen. I would like to remove the default meta boxes for a given custom taxonomy and place it in a drop down ...
1
vote
0answers
28 views

Including taxonomy term before post type breaks top level pages

Got a website that has two top level pages called commercial and domestic, and in these pages there is other content that shares a similar format, e.g. I want case studies in both the commercial and ...
1
vote
0answers
55 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 ( $...
1
vote
0answers
273 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: ...
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: www.example.com/...
1
vote
0answers
67 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/ articles/...
1
vote
0answers
369 views

Display value of custom field of custom taxonomy in single post?

I have a review site, which uses a custom taxonomy called 'show' to organize posts. I have used Advanced Custom Fields to add a field to the 'show' taxonomy called 'twitter_handle'. I am trying to ...
1
vote
0answers
117 views

Taxonomy page lead to 404 page on pagination

I read a lot of posts here with similar problems but nothing worked for me. I have a custom taxonomy (portfolio_category) for my custom post type. I created a taxonomy template (taxonomy-...
1
vote
0answers
52 views

Best action hook to create custom post and assign taxonomy terms to it on plugin activation?

When I install the plugin, I want to create 10 CPTs of a particular type, which I define in the init action hook, and want to assign 10 terms of a custom taxonomy, which too is defined in an init ...
1
vote
0answers
310 views

Display parent and child taxonomies in separate drop down select fields

I've used a piece of code from another question here but my second select field did not changed accordingly. Can anyone tell me what's wrong? Below is my code: My php functions: function ...
1
vote
0answers
197 views

Sticky posts or Featured posts only on Homepage

I have made a Featured posts ( Film en box office ) the problem is the featured posts duplicate on all post pages and Taxonomy pages I want display and SET it only in homepage and avoid duplicate ...
1
vote
0answers
30 views

How to change permalink to include custom post type

Is there a way to add custom post type to permalinks with a plugin or otherwise? This is what I am trying to accomplish: mysite.com/projects/food/burgerking mysite.com/projects/wine/cherryvineyard ...