0
votes
0answers
6 views

Query custom post type in custom taxonomy loop

I've got three products (called "Kits") and each kit contains several items. The "items" are a custom post type which are linked to each kit via a relationship field. Each item has a custom taxonomy ...
0
votes
1answer
19 views

Get a list of categories ids

I'm working on a portfolio with filters based on custom post type. That filters must display only categories for the posts that are displayed in the portfolio, since user can specify them by id in the ...
0
votes
1answer
17 views

How to display class name in this shortcode post query

I need help with this as it's my first project of my new job & I'm stuck at this point. I'm retrieving custom post types portfolio using this code as a shortlist: extract( shortcode_atts( array( ...
0
votes
1answer
22 views

Get Terms from Custom Taxonomy and Current Post

I'm working with the WooCommerce plugin. I've got three products (called "Kits") and each kit contains several items. The "items" are a custom post type which are linked to each kit via a relationship ...
0
votes
0answers
17 views

How to relate multiple CPTs via Custom Taxomonies?

I have 3 custom post types - Events, Sessions and Speakers. Events have multiple Sessions. Sessions have multiple speakers. Speakers can be at multiple everything. They all have their own ...
0
votes
0answers
23 views

How to show a custom taxonomy using a custom template

I've been playing around the custom taxonomy and custom post types. I've been able to get the post type working fine, with my slug as I need. However, creating a taxonomy page (e.g. taxonomy-????) I ...
0
votes
3answers
86 views
+100

Menu Multiple Taxonomies

I have a post_type "products" which has both "Category" and "Brand" taxonomies. Each product has exactly 1 Category, and exactly 1 Brand. I would like to display a menu which first lists the ...
1
vote
1answer
22 views

Custom Post Type doesn't show Draft and Trash Options

I have custom post type "Pdf"section.But there is no options like Draft and Trash..
0
votes
0answers
20 views

custom post type and taxonomy URL

I'm using following code for my custom post type function resources_custom() { $labels = array( 'name' => _x( 'Resources', 'post type general name' ), ...
0
votes
0answers
28 views

Can I change the slug of my archive page on a Custom post type?

I have a CPT with a slug that is the same of a page. This has been done on purpose as I hope I was able to control the slug of my archive page to be something like http://www.test.me/page ...
1
vote
2answers
42 views

How do I make a custom taxonomy for a CPT appear inbetween title and editor boxes?

This may be a duplicate of this question - Changing the priority of a custom taxonomy's metabox but I can't work out how to apply that answer. I'm unsure what my custom taxonomy div label would be ...
1
vote
0answers
17 views

Custom Taxonomy not being saved on custom posttype

This is very unusual, and I can't seem to figure out why this is happening. I have registered a custom posttype and a taxonomy (for that posttype). The taxonomy widget gets displayed on the "edit ...
0
votes
1answer
36 views

How to completely disable a taxonomy archive on the frontend?

I have registered three custom taxonomies. All three of these custom taxonomies are attached to my custom post type. There is only one taxonomy out of the three registered, that I would like not ...
0
votes
0answers
30 views

Ordering posts by custom taxonomy in admin area

EDIT @kaiser - this question is slightly different to the answer you posted in that I am talking about sorting by clicking the column title rather than adding a dropdown to filter by taxonomy term ...
-2
votes
1answer
23 views

Custom Field Search

I'm trying to create a custom search form that searches a custom post type that I have created. The form would need to search two custom taxonomies (similar to tags and categories) and the body text ...
1
vote
0answers
34 views

Create more category hierarchical depth for custom post type/taxonomy plugin (widget)

Source: http://getplatypi.com/docs/ A little new to the plugin development world, but so far I am building a post type plugin to support hierarchical categories in a list form with multiple depth ...
1
vote
2answers
27 views

Displaying Custom Taxonomies From Multiple Custom Post Types

I have multiple custom post types and each of them has multiples categories. I'm trying this code to display certain categories from all of the custom post types + regular post. <?php query_posts( ...
0
votes
0answers
24 views

Template for Custom Post Type and its Category

I have created a custom post-type ( Testimonials ) and i have custom taxonomies for this post-type to separate the testimonials. Custom Testimonial Taxonomies are 1) Commercial 2) Residential Now, i ...
1
vote
2answers
96 views

Generate Shortcodes by Taxonomy

Check this code: function slide_group() { register_taxonomy('Group', 'slides', array( 'hierarchical' => true /*visualizza come le categorie*/, 'label' => ...
0
votes
0answers
29 views

custom post type and taxonomies in a php class

I used this class in the tutorial to create two custom post types http://code.tutsplus.com/articles/custom-post-type-helper-class--wp-25104 According to add_taxonomy() function if the taxonomy ...
0
votes
1answer
23 views

Conditional Statement custom post type category

I would like to display a text depends of my custom taxonomy category, like: if custom post type category is X, then echo Text Y. I've tried this, but its not working: global $post; if ...
0
votes
1answer
39 views

SQL to update custom post taxonomies

I have a custom post "review". It uses the same categories and tags from default posts, so they share "category" and "tag" taxonomies. But later I changed the "review" register to have their own ...
0
votes
1answer
26 views

Check category_name or taxonomy slug for a Custom Post Type?

I am checking the current page I am on and then using that to set a variable to change the category name like so. <?php if (is_page('apples')) { $categoryname = 'Apples'; ...
1
vote
1answer
54 views

Create a permalink structure with custom taxonomies and custom post types gives 404

Based on topic How to create a permalink structure with custom taxonomies and custom post types like base-name/parent-tax/child-tax/custom-post-type-name My code is // register the new post type ...
0
votes
1answer
42 views

Taxonomy rewrite pagination 404

I have rewritten my taxonomy url to the name of my posts type 'filter'. Because I have done this, my pagination does not work anymore on the url: http://www.website.com/filter/term-name/ So if I ...
0
votes
1answer
65 views

How to filter the taxonomy terms based on another taxonomy term

I have created a custom Post Type called "Tour" which Holds up-to five Taxonomies called "destination", "Types", "Month of Travel", "Year of Travel" and "Led by". Now I brought them as drop-down ...
0
votes
0answers
33 views

Adding 2 CPT with multiple custom taxonomies to permalinks

I have two custom post types with hierarchical custom taxonomies that I'd like to add to my permalink structure. I'd like to achieve this: ...
1
vote
1answer
33 views

Multiple portfolios and single item in two of them (ideas?)

I’m creating a theme at the moment and has come to a point to decide what is the best solution to have implemented for a theme with multiple portfolios. If there is a project that is in the two of ...
0
votes
2answers
45 views

Get Registered Custom Post Type to get All Custom Taxonomies

I am trying to get all the Custom Post Types Registered either by theme or plugin, but no method is working. $postargs = array( 'public' => true, '_builtin' => false ); $postoutput = ...
0
votes
0answers
17 views

How to display custom taxonomies at multiple levels

I have built a custom post for products, as well as a custom taxonomy for it. I am attempting to have a main product page that lists the top level categories. That works fine. Then that page links to ...
2
votes
1answer
62 views

WP_List_Table inside metabox not working on submit

I'm trying to display a WP_List_table inside a metabox. The metabox is for a custom taxonomy called 'service' which is registered to a custom post type called 'office'. The table columns contain input ...
0
votes
1answer
16 views

Exclude a custom category from a list

I have some code that is generating a list of custom categories for a custom post type. This is the code: $html .= '<ul class="item-direct-filters"><li ...
1
vote
0answers
39 views

Hierarchial Custom Post Types/Taxonomies

I've been learning Wordpress for the last few weeks and I'm now creating my own theme. I found this question (How to create a permalink structure with custom taxonomies and custom post types like ...
0
votes
1answer
39 views

How to Associate Posts with Pages

This is more of a "how does this work", kind of question than a code question, though some code may be involved. I've been Googling, and reading other questions about custom post types and taxonomies, ...
1
vote
2answers
80 views

Display Posts of a Category in Alphabetical Order (Custom Post Type)

I have a custom post type called "link" I have a custom taxonomy for this post type called "link-category" I have a template file for this taxonomy, "taxonomy-link-category.php" I need the template ...
1
vote
1answer
48 views

How to setup a Custom Taxonomy Term template

I have a Custom Post Type and 2 taxonomies attached to it. Each taxonomy has about 20 terms containing several posts. While I have successfully setup a custom archive template for my custom-post-type. ...
0
votes
1answer
49 views

Change permalinks for custom post type based on taxonomy term

I have a custom post type 'profile'. Each profile can be one and only one of either student, staff or alumni, which is set through the 'profile_types' custom taxonomy. This gives me permalinks of: ...
0
votes
0answers
18 views

Show taxonomy and custom post type in the same query

I am not sure how to raise the question, because I find all that goes in another way, I will try... I have three custom post types and these have their own taxonomies. The following is a simplified ...
0
votes
1answer
53 views

Timetable of Custom Meta Data using Custom Post Type and Custom Taxonomy

Scenario: I have a custom post type with custom meta boxes. Each post should represent a row in my table i.e Activity 1 Jan, Activity 1 Feb and Activity 1 Mar I have a custom taxonomy of terms ...
0
votes
1answer
23 views

Custom types, taxonomies and query optimization

I'm doing a re-design and re-coding of a fairly large Wordpress website. As part of it we're adding some different post types representing various data types (website will have additional data-driven ...
0
votes
0answers
36 views

Custom Post Type & Post Meta or Custom Table for Serial Number Delivery Project

I've trawled a ton of articles here, on wordpress.org, makeuseof.com, code.tutsplus.com, etc. - all very informative but I'm still not sure whether to use a custom table with my plugin project or not. ...
0
votes
0answers
36 views

custom taxonomies are not showing up in get_taxonomies

I've made several taxonomies through the custom post type ui manager but i am not able to call them with get_taxonomies and my get_terms is not working either. Is there something I have to do after ...
0
votes
1answer
19 views

“Cannot redeclare cpt_reg_tax()” because of functions.php

Background: I have a childtheme folder of my Wordpress theme which contains a functions.php. In this functions.php, at the beginning, I wrote code for setting up a custom post type that allows the ...
2
votes
1answer
109 views

wp_insert_term doesn't work with custom post type's taxonomy

Here is the problem I am having: I have a custom post type called "weddingguests" This custom post type "weddingguests" has a custom taxonomy, "friendsof", hierarchic I want to programmatically ...
0
votes
0answers
73 views

Jquery/Ajax+taxonomy filter?

I need to create a filter it doesn't really matter wether it's JS/Jquery or Ajax I just think Jquery/Js would be easiest. Either way this is my situation. I have a few custom taxonomies and custom ...
0
votes
1answer
28 views

Foreach loop returning more than one item when querying taxonomy

I am querying the taxonomy terms and then listing the posts that are under those terms. The taxonomy is basically a category for a custom post type, and the terms in it are the categories. I didn't ...
0
votes
0answers
29 views

Display posts from category in page

I am trying to use a shortcode to display a loop of posts from a category. I have the shortcode working but it is only displaying the actually category names within the custom post type and not the ...
0
votes
0answers
44 views

Parent cpt/child custom post type URL permalink relationship

I am attempting to set up a relationship in Wordpress between two custom post types I’ve created and display that relationship within each post type’s permalink URL structure. I have created two ...
0
votes
1answer
23 views

insert a taxonomy for a custom post type

I have been created a custom post type and create a taxonomy for it, below is the code which i used to create those: //create custom post type of jobs add_action( 'init', 'create_jobs' ); function ...
0
votes
1answer
46 views

Sort a custom post type loop by a custom taxomomy instead of chronologically

I simply want to list out the books (a custom post type) organized by their respective genre (the taxonomy made with the code below). I have all the code being used listed below. I am using the ...