Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [custom-taxonomy]

Since WordPress 2.3, plugin and theme authors have had the ability to create custom taxonomies-- essentially specialized "categories"-- to help organize information.

0
votes
1answer
23 views

WP Query Conditionally query meta and taxonomy

I develop a plugin which includes a custom post type that is displayed as a list within WP Admin. There are varying levels of users defined within the plugin and a few other options which determine ...
0
votes
1answer
22 views

Custom taxonomy.php not working

I have created a custom taxonomy called "series" (code below) and two pages: taxonomy.php and a taxonomy-series.php 1)I noticed that siteurl.com/series does not work I get my 404 page, but if I were ...
0
votes
0answers
9 views

How do I display content on a Woocommerce product sub-categories that belong to a specific parent category?

I'm trying to display a short message under each product for all products that belong to sub-categories of a specific parent category Parent Category Sub category 1 Sub category 2 Sub category 3 I ...
0
votes
1answer
25 views

Display both parent and child custom taxonomy / content

I'm trying to display a list of parent and children custom taxonomy and under each the title of any post associated with the taxonomy. What I have now is: Category 1 Title Title Title Category ...
0
votes
0answers
19 views

How to create a TinyMCE dropdown with dynamically generated shortcodes

Is it possible to create a TinyMCE dropdown menu with dynamically generated shortcodes? This is my code for shortcodes: function filter_button_group($atts){ $attributes = shortcode_atts( array( ...
1
vote
1answer
20 views

How to display selected taxonomies by their parent

I have a custom taxonomy as 'services' and custom post type as 'portfolio'. What I would like to do is; I want to list all the selected services under their parent taxonomy in single page. This is ...
0
votes
0answers
9 views

Relations between taxonomy terms for getting parent child nested Json objects and arrays

i have 2 taxonomies (cat) (subcat) and they have some terms(rows) for example , , i want make a relation like SQL data tables between the taxonomy terms for giving me a nested object of arrays in the ...
0
votes
2answers
15 views

How to display Custom Taxonomy under Custom Admin Menu?

I have problem to display custom taxonomy under custom admin menu. Custom post types are displayed properly, but the taxonomy doesn't appear. I added to custom post types: 'show_in_menu' => 'my-menu' ...
0
votes
0answers
26 views

How to insert my custom taxonomy template via plugin?

I've created a plugin to manage my bookstore site. In this plugin, I've created a custom taxonomy call "authors" to manage book authors. I want to display archives of Authors, so I've created a ...
0
votes
0answers
18 views

How To Create Dynamic Permalink To Custom Taxonomy List of Current Posts?

I'm looking for help with a problem I've run into and can't seem to workout myself. I have created my own custom taxonomy called series (code below). I am calling the custom taxonomy posts in a widget ...
0
votes
0answers
33 views

Permalink structure custom-taxonomy-slug/cpt-slug breaks ability to have subpages and pagination (404 error)

I took over a WordPress project from another programmer, who wrote code to create the permalink structure "custom-taxonomy-slug/cpt-slug", the custom taxonomy is "city", the cpt is "restaurant", so ...
0
votes
0answers
11 views

On the Admin Taxonomy List Page, How can i filter the list by Tax Meta value?

I have a custom taxonomy called: "authors" And Taxonomy Meta field named: "authors_status" which values are "inactive" or "active" When viewing all the Authors Taxonomy list in wordpress admin, ...
0
votes
0answers
24 views

deleted_$taxonomy not getting fired

Want to call a function after my custom taxonomy was deleted. But the hook is not getting fired. Registered taxonomy on init hook callback register_taxonomy( 'college-session', '...
0
votes
1answer
23 views

Get post count for current custom taxonomy

My site has a custom taxonomy called series. Underneath each post, I'm trying to display a specific div, but only if that post is in a series, and only if that series has more than one post. I feel ...
0
votes
0answers
29 views

How to set this permalink structure? /custom-taxonomy/custom-post-type/post-name

I'm coding a WordPress website for a festival that takes place in several cities. My custom post type is events and the custom taxonomy is city. I would like to have a permalink structure like this: ...
0
votes
0answers
9 views

update custom taxonomy with Ajax in edit.php file

I created Custom Psot Type and Custom Taxonomy. I recover, for each CPT element its custom taxonomy. here is a screenshot: now , i want update the coustom taxonomy for the CPT element with ajax ...
0
votes
0answers
10 views

Pretty Post Type/Taxonomy URLs for Archives While Keeping Post Type/Post URLs Intact

This question expands the following: Permalinks: custom post type -> custom taxonomy -> post This works all well and good... however, I have an existing site that I'm trying to improve and, ...
0
votes
1answer
9 views

How to hide custom taxonomy archives same way as hiding custom post types?

I'm trying to make it so my custom taxonomy terms don't have archive pages. I achieved something similar for a custom post type using "publicly_queryable' => false". I tried this from the docs inside ...
0
votes
1answer
18 views

Custom taxonomy not showing up when adding a new custom post type

I added a taxonomy and custom post type, but for some reason, my taxonomy isn't showing up when I add a new marker. I half expected it to be there like when selecting a category for a post, but it isn'...
0
votes
2answers
34 views

one post per term taxonomy

I need some help, again. I use this query: $tax = get_the_terms($id, 'coupon_category'); $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; ...
-1
votes
1answer
11 views

How to manage a bookstore

I am planning to make a bookstore website with Wordpress. Can you give me some advice to manage my store? I'm not sure whether to choose Custom Post Type or Custom Taxonomy to manage the authors of ...
0
votes
2answers
21 views

query_posts problem - need help

I have a taxonomy called coupon_category. In a query_post I am trying to call all posts from related custom taxonomy with the same coupon_category. If I use: <?php // show ...
1
vote
1answer
14 views

Where (or when) should I register a new taxonomy?

I'm writing a plugin and my question is: Which is the most suitable point in which to place the code to register a custom_post_type, or a taxonomy: "init action", or "activation_hook" ??? 1)...
0
votes
1answer
23 views

Get all posts for custom taxonomy term

I have a custom taxonomy how-to-guide-type and I have some terms setup in this taxonomy. I want to display ONLY the posts assigned to each taxonomy term. I have the following but I can only seem to ...
1
vote
0answers
21 views

Display a grid of taxonomy terms at root taxonomy page

I’ve used WordPress for years as a content admin but I am new to PHP development (am fine with HTML/CSS). From Googling about and experimenting I believe that what I want to achieve isn’t standard ...
0
votes
2answers
57 views

Permalinks: custom post type -> custom taxonomy -> custom sub taxonomy -> post

I am building a custom post type and its respective custom taxonomy. Here is the code: add_action( 'init', 'register_my_types' ); function register_my_types() { register_post_type( 'help', ...
0
votes
0answers
23 views

Implement AJAX load more button in custom post loop

I need help implement a load more button in some custom loops in my custom wordpress theme. I'm experiencing some problems in the final step, I'm not able to print the function. This site is a ...
1
vote
1answer
26 views

wp_query to find posts by year and month

I need to create sorting by year and month of custom post type in taxonomy archive page. Like this: Here is shown year, if post exists in that year. And Highlighted month if post exists in that ...
0
votes
1answer
17 views

Redirect Custom Post Type from Child Taxonomies

I have created a Custom Post type and its own respective taxonomy. I have for example this URL structure: http://www.example.com/faq/category/sub-category/test-post/ The same content can also be ...
0
votes
0answers
17 views

How to use the meta box from edit media in attachment details for custom taxonomy

i've added a custom post Type for attachments in Wordpress and it works fine. My problem is the way of displaying (or not displaying) the terms in the attachment details of wordpress. It's only a ...
-2
votes
0answers
29 views

IF no taxonomy chosen THEN display alternative text… in this function [on hold]

this code has been checked by experts and is deemed to be "malicious free code" I have this function that displays the taxonomy level of a hierarchy. For example... Let's say I have the taxonomy ...
0
votes
0answers
30 views

get custom post meta inside custom taxonomy

Hello I create a taxonomy for one of my custom type and add meta field on the backend , I would like to display it in the front end , my code is currently: Could you help me ? /* Add Image Upload to ...
0
votes
2answers
21 views

Loop to display custom post type from a custom Taxonomy

I have created a post type and a taxonomy for this post type . After I create a page to display all taxonomies for the post type. When i'm click on one of the taxonomy displayed I would like to show ...
0
votes
1answer
19 views

Display the taxonomy name of the current term

I have a hierarchical taxonomy with lots of terms in hierarchical order. No matter what term i'm viewing I'd like to be able to display the custom taxonomy name (as per what i've registered it as ...
0
votes
1answer
13 views

One WP_Query that always shows 1 post from category X and 1 post from “not in category X”?

I want to use WP_Query to display 2 posts, the latest from category X, and the latest that is not in category X. Is it possible to create one query that does this, or do I have to query twice? If it's ...
0
votes
1answer
17 views

WP Multisite: Are custom taxonomies specific to each site only?

I'm still trying to work out what Multisite does and doesn't do... Are custom taxonomies specific to each site only or if I create a custom taxonomy on one site will others see it on another site?
0
votes
1answer
30 views

How to display Related Posts based on number of taxonomy terms matched

I have a custom post-type 'News' which has multiple custom taxonomies 'news-category', 'news-tags'. Each post contains between 4-8 'news-tags' and 1 'news-category'. For my current post, I'd like to ...
0
votes
1answer
31 views

posts_per_page is not working by term

I'm trying to limit the posts, but it does not work. It shows them all. Why posts_per_page does not work here? <?php // Output all Taxonomies names with their respective items $terms = get_terms( ...
0
votes
2answers
20 views

Limit categories and it's subcategories for specific group of users

Is it possible to limit the categories so that user in a list of groups does not see these posts at all? Not even in a list of posts? I'm using the answer from here: Only show category to certain ...
1
vote
0answers
22 views

Wordpress custom taxonomy, posts urls

I have a custom taxanomy and posts. On my site there are categories and subcategories. Now URLSs look like this: post: domen/product/lorem-post/ category: domen/category/lorem-category/ sybcategory: ...
0
votes
0answers
11 views

How to display only those posts as related post which have same post object?

I have two custom post types Lectures and Chapters. I have made a custom field in lectures post type and set the field type post object. In chapters post type I have added Chapter 1: Biology Fsc ...
1
vote
1answer
36 views

List Post Title by Last Word Then Second Last

I have a CPT - Author where the title of the post is used as Author's name. I'm trying to list the authors alphabetically based on the last word (last name) and it works best. Here is the code in ...
0
votes
2answers
20 views

Build filter for post-type + multi taxonomies + multi terms

I Need to build an interface with a filter set (a list of checkboxes) that the user can check and click 'filter' to search with in 1 custom post-type for posts with matching terms (there are 3 custom ...
0
votes
0answers
17 views

Query Multiple Taxonomies and Multiple Terms with Different Operators

I am attempting to find related custom post types that share at least one term in taxonomy A and at least one term in taxonomy B. So it is sort of taxonomy A AND taxonomy B but OR within the terms of ...
0
votes
1answer
24 views

Filter Custom Post Type Posts by Taxonomy

I created a custom post type named "listas" and a custom taxonomy named "taxolistas". I would like to fix this function from the plugin Thumbs Rating to make it filter posts by custom taxonomies ...
0
votes
1answer
25 views

How to check if a post has at least 2 terms from a custom taxonomy attached?

I have a custom taxonomy with several terms. I need to check if the post has more than 1 of these terms. How can it be done?
0
votes
0answers
13 views

Taxonomy Brand Archive with Product Categories Integration

The following code is inserted in a the taxonomy brand page and it shows all product_cats for a specific brand. <?php $argsproduct = array( 'post_type' => '...
0
votes
1answer
28 views

How to display only child category post in related posts in custom post type?

I'm trying to display only those posts which are under the same category of the post which I have clicked as related posts. My custom taxonomy are like this : Fsc year 1 => Biology => Bio chapter 1 . ...
1
vote
1answer
20 views

Listing posts under primary and secondary taxonomies

Following on from this post: List all posts in custom post type by taxonomy How would I go about doing the same as above with a Custom Post Type called Area, but looping through the child-categories ...
0
votes
0answers
28 views

Query all images with certain tag in media library using visual portfolio plugin

Introduction: I am developing a wordpress website and want to use the Visual Portfolio plugin (https://wordpress.org/plugins/visual-portfolio/). This plugin gives me the ability to display a gallery ...