Tagged Questions

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

0
votes
2answers
51 views

Custom Post type as Taxonomy

I have a custom post type "issue" and relationship with custom post type "article". What I want is, to create the issue cpt as a taxonomy for the article cpt, and showing it in article post list. When ...
0
votes
1answer
32 views

Custom Post Type causes Page Not Found

I found a basic tutorial online which gave the rundown on how to create a plugin from scratch and sets up a new custom post type. I could not find any basic coupon plugins that accomplished what I ...
0
votes
0answers
39 views

Custom Page Taxonomy - 404 errors all over the place

I keep looking at the same few lines of PHP over and over again, and I can't make heads or tails out of why the 404 errors are happening. Here are the lines: add_action( 'init', ...
0
votes
1answer
32 views

wp_set_object_terms() is not replacing term, but creating a new one

From a custom Submenu Page if I use a hard code like: $post_id = 111; $flightCategory = array( 25 ); wp_set_object_terms( $post_id, $flightCategory, 'flight_categories' ); And refresh the page, it ...
0
votes
0answers
22 views

Add different meta box based on taxonomy

i created a plugin with a custom post type. I added a new custom taxonomy also under that post type . How can i add the meta boxes based on different taxonomy. if( is_object_in_term('', 'name of ...
0
votes
1answer
17 views

Custom taxonomy not showing terms in post area

I have created a custom taxonomy called Country to collect posts (even from different categories) under country terms. I used the following code, and I created terms with no problem: function ...
0
votes
0answers
29 views

problem in taxonomy-{taxonomy}.php pagination

my custom taxonomy is: $image_labels = array( 'name' => _x( 'تصویر', 'Taxonomy General Name', 'text_domain' ), 'singular_name' => _x( 'تصویر', ...
1
vote
0answers
23 views

Base permalink for custom taxonomy

I'm using custom hierarchical taxonomy that is attached to custom post with following structure: www.mysite.com/movies/drama/example/ where "movies" is a slug for custom taxonomy and "drama" is an ...
-1
votes
1answer
24 views

Head Code for Custom Taxonomy

There is one custom taxonomy (STORE) and i want to add this code to one taxonomy only <link rel="alternate" hreflang="fr" href="http://www.domain.com/fr" /> What code shall i use?
0
votes
1answer
24 views

Page displaying 1st post from a range of custom tax?

Is it possible to have a page display the 1st post from each category from a custom taxonomy? e.g custom tax called gallery-section, within that it has a range of categories, i.e Gallery 1, Gallery 2 ...
0
votes
2answers
18 views

single_cat_title equivalent for custom taxonomy?

I have made a custom post type "projects" with custom taxonomy "tag", here's the snippet from code: $args = array( 'post_type'=> 'projects', ); $qry = new WP_Query( $args ); ?> ...
0
votes
1answer
39 views

Custom Post Type Custom Archive Page Not Working

I've created a custom post type and taxonomy for a portfolio loop: // Portfolio CPT function portfolio_cpt() { $labels = array( 'name' => _x( 'Potfolio Items', 'post type ...
0
votes
0answers
28 views

Get a “featured” taxonomy term using a custom field checkbox

I'm using Advanced Custom Fields to add a true/false checkbox to the taxonomy management screen. I want to show (a) the most recent term in the taxonomy that (b) has the checkbox selected to true. I ...
0
votes
0answers
19 views

Debugging Missing Elements in Taxonomy

I'm trying to debug an issue and I was hoping I could get some direction. With the same exact taxonomy page template, one of the pages is missing the sidebar and the WP admin bar (logged in), while ...
0
votes
0answers
11 views

Custom Post Type Taxonomy question [duplicate]

I am currently working on a WordPress site and I'm using a custom post type named 'project'. The URL leading to this CPT is localhost:8888/wordpress/project. The problem I have here is that that page ...
1
vote
1answer
75 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
29 views

List all posts from custom post type by taxonomy

Having custom post types with taxonomies. Lets say I have a custom post type "Products" with taxonomies "new", "old", "fashion". Now I have a Nav where I can click on ...
0
votes
2answers
38 views

Only One Post of Custom Post Type Appearing on Template Page

I'm not sure if it's a database or template issue, but on this template page only one post of my Custom Post Types are appearing. There should be at least two. The page uses an isotope.js script, but ...
0
votes
1answer
26 views

Showing HTML if Post is In Certain Taxonomy Term

I'm using the following code to display an image based on which category a post is in on my blog. I'm trying to use this same concept under my custom post type. Instead the category is a Term in my ...
0
votes
1answer
24 views

Custom Taxonomies not appearing in Admin

I've made a plugin of a custom content type and taxonomy. The CPT is showing fine, but the Taxonomies are not. There's a lot of code, but the taxonomy information is parsed below: Full code can be ...
0
votes
2answers
62 views

Permalinks when using Custom Post Type with static page for archive

I have created a custom post type called "portfolio" and I use a static page to list my portfolio posts because I need to add content using the content editor. My problem is that I would like this ...
0
votes
3answers
34 views

Display different information of a custom post type

I'm developing a real estate site for a client and I'm struggling a bit with it. I created a custom post type called "Property". A property can be on sale and/or on rent. Two different menu items in ...
0
votes
1answer
33 views

Enabling permalinks disables custom page template

I have assigned a custom template on a page in wordpress, but it's not working anymore after I enable permalinks. Instead of the custom template, the "post-type-archive-portfolio" template is used. ...
0
votes
1answer
28 views

Geographic search with taxonomy structure [duplicate]

I had stored locations in wp with defined taxonomy. I would like implement a search that can take in consideration the location, eg, search for 'car rental, Maryland' All car rental are stored ...
0
votes
1answer
18 views

Getting the parent terms adds additional empty markup [closed]

I am trying to get only top level terms from hierarchical taxonomy called "City". It works fine in a way, because it outputs extra elements... $cities = get_terms( 'city' , array( ...
0
votes
0answers
23 views

Get custom type category from a category posts

I've been searching the way to do it but no good. The title may be confusing, let me explain my problem... I have the archive page (the main category), then I've posts inside that category and inside ...
0
votes
1answer
46 views

How to List CPTs Under One Tax Term

I am having some difficulties to get CPTs which are under one Tax Term. For Example if I have a Taxonomy Called "Movie" and Tax terms as: A B C How Can I list CPTS which are in Tax "Movie" and ...
0
votes
2answers
45 views

Custom taxonomy wp_query woes.

Here's a brief outline of the set-up: "The Art" CPT is where all the art and art descriptions are uploaded. In this CPT you can choose the category (custom taxonomy) of the art--painting, jewelry, ...
0
votes
0answers
28 views

Why is my blog theme not showing page and post content, or their custom field values?

I have created a proprietary blog theme, with the following: 1 custom post type 1 custom taxonomy Taxonomy X has 2 terms. Each term has 4 and 7 posts respectively. Each post has 5 custom_fields. All ...
0
votes
1answer
20 views

Change existing taxonomy settings when using custom taxonomy

For a plugin I have created a new custom taxonomy for attachments using the function register_taxonomy() and parameters like "show_admin_column". When this parameter is set to true, it shows the ...
-1
votes
1answer
67 views

Custom taxonomy template not working

I have created a custom post type named property, and a taxonomy named city is attached to this post type. There are several cities (terms) like toronto, taiwan,dhaka. I want to create a template ...
0
votes
1answer
30 views

Change sub-menu position of custom taxonomy

I'm adding an additional taxonomy to the Posts post-type and would like it to appear between Categories and Tags in the control panel Posts sub-menu. I know when registering custom post types you can ...
1
vote
1answer
50 views

Sort custom taxonomy terms order by both count and name

I am working on a custom taxonomy sorting to make popular terms. The requirement is to sort by popular posts by post count and also I need to sort terms by name to get it alphabetical order. Here is ...
0
votes
1answer
48 views

How to Set Taxonomy Object Description?

I noticed when dealing with Post Type Objects (Using get_post_type_object();) and Taxonomy Objects (Using get_taxonomy();) there's a property called "description". How do you set this description ...
0
votes
0answers
19 views

Get Taxonomy Link if is in another Taxonomy

I am working on a site with a custom post type and two custom taxonomies: "book" and "chapter". I want to display a list of chapters of books. The Chapter list would link to posts tagged under that ...
1
vote
0answers
38 views

custom taxonomy archive by year

there is one custom post type News there are 3 taxonomy terms(like category). 1). press-release 2). in-the-news 3). events i have list out all this three category. now what i am looking for is ...
0
votes
0answers
35 views

select and save custom taxonomy from front end

i have 2 custom taxonomy for custom post type event, but i can't get it to save on backend from frontend form, here is the link to site http://wheresthaparty.com/wordpress/post-party/ and here is the ...
0
votes
1answer
22 views

Creating a Category Taxonomy

I have this entertainment site for TV shows. I cover at least 27 shows so far. I use so many different post types for the shows and it slows down the site, I eventually want to add more shows. I ...
0
votes
0answers
29 views

Page 2+ of taxonomy archives does not recognise sort-order from dropdown

I'm using a custom taxonomy archive and I want the user to be able to organise it by 'latest' or 'alphabetical' along with other custom fields in a dropdown form. Seems to be working fine on the first ...
0
votes
1answer
93 views

Inserting a term into a custom taxonomy

Made this custom taxonomy that'll control layout on single posts, basically I want to add two options, Layout 1 and Layout 2. // Register Custom Taxonomy function custom_taxonomy() { $labels = ...
0
votes
1answer
16 views

How can I add a custom permalink to a term?

How can I make a taxonomy term have a custom permalink? (on a term basis, e.g. /anything/here for a taxonomy called food and a term called burrito) I don't think there's much more to explain so, my ...
0
votes
1answer
791 views

How to get WooCommerce Product Category Link by ID?

WooCommerce's product categories are a custom taxonomy called "product_cat". In a function I'm writing, I'm using get_categories with the "taxonomy" parameter set to product_cat. Everything works fine ...
-1
votes
1answer
40 views

Issue On Listing Woocommerce Parent Tag List

I am having some issue on getting top level terms of product_cat Taxonomy of WooCommerce First of all I have a code which list all Terms in product_cat as: $terms = get_terms("product_cat"); if ( ...
0
votes
0answers
33 views

SOLVED - Rewrite of custom taxonomy displayed on a page

I have a custom taxonomy "product-category". All parent terms are displayed and linked on a page myurl.com/directory/ with some custom code. Example link: /directory/accessories This gives me a 404, ...
0
votes
1answer
52 views

wp_query args adding muitiple tax_querys

i am creating a custom search system which search my custom post type recipes, in the search it searches the taxonomies terms that people have selected. Now due to the way it can hard code all these ...
0
votes
2answers
43 views

Making a Custom Search form

I am creating a custom search form which will search a custom post type called recipes. and it has a load of taxonomies. Now I output these taxonomy's terms into checkboxes which are grouped by the ...
0
votes
1answer
38 views

Set a taxonomy as private

I created the taxonomy VAT and set public to false. But in frontend I can get posts by .../?vat_tax=22. How can reserve this taxonomy anly for internal use? Below the code I created for this taxonomy. ...
2
votes
1answer
75 views

custom taxonomy and custom post type url conflict

i am having one serious url issue. there is news custom post type. it's slug is news. News taxonomy slug: news_category News taxonomy url is: http://domain.com/news_category/press-release i want ...
0
votes
1answer
94 views

Custom post type / taxonomy rewrite archive page 2 gives 404

I've followed the code based off this and everything is working perfectly -How to create a permalink structure with custom taxonomies and custom post types like ...
1
vote
1answer
26 views

Reverse traversing taxonomy based on term_id

Is it possible to do a reversed traversing up the hierarchy, if a child term id is known? For example, I might have a taxonomy that looks like this: Cars - Pink - Blue - Grey - Silver ...