Stack Exchange Network

Stack Exchange network consists of 175 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 [taxonomy]

A taxonomy is a generic "category" used to organize posts and custom post types

0
votes
1answer
12 views

Dynamic Template file for subpage

https://www.example.com/tag_name-tag.php is template file for showing posts of any post_tag. https://www.example.com/tag_name/about - I want to show description of post_tag taxonomy term. how can ...
0
votes
0answers
14 views

Fatal error: Call to undefined function add_rewrite_tag

I got this error while updating the WordPress theme. Any suggestions on where to start first? I’ve never gotten this error or troubleshooted this before.
0
votes
0answers
8 views

Using ajax on filtering taxonomies with checkbox and wordpress loops

I am struggling to write a code which can filter posts on the basis of selected checkbox of custom taxonomies as per below image.
0
votes
0answers
18 views

Set a Default CPT taxonomy by taxonomy id

How can I set a default CPT taxonomy by taxonomy id? I don't want to do it by slug. Must be by ID.
0
votes
1answer
43 views

Make taxonomy query dynamic

I'm using the same page template for multiple pages. -> page-base.php On each page using this template, I want to display categories, created with a CPT. My question is, how can I make my array ...
0
votes
1answer
25 views

Get post meta value outside of the loop

I'm working on an extra function to list different stuff, My function looks like: "display all hotels for a specific city" -> hotels is as CPT and CITY as custom Tax. So for exemple, lets display ...
0
votes
1answer
34 views

Show one post of each custom taxonomy

I am trying to only post one post of each custom taxonomy APP_TAX_STORE my wp_query looks like this: // show all alternative active coupons for this category from related store $tax =...
-1
votes
0answers
6 views

More than one Fieldmanager metabox using the same datasource for options? [closed]

I want to create two fields: one for topic and one for primary topic. For the topic, I want checkboxes and ability to choose more than one option. For primary topic, it should be a select field ...
0
votes
0answers
24 views

Category grid with featured image

I want to create a page that shows my categories with their featured image and the title. A sort of post grid but 't er n with categories. What is the best way to do this? A good plugin? Gr Wim
0
votes
0answers
23 views

WooCommerce product query using meta query for the categories taxonomy

I'm trying to add to my existing meta query the category taxonomy from WooCommerce so I can display specific categories as part of the product query. This is my current meta query; add_action( '...
0
votes
0answers
15 views

I cant remove TAG from URL even in HTACCESS

i tried putting dot in permalinks (which is like 2012 fix) but it didnt work so i added that code to htaccess RewriteRule ^category(.+)$ http://example.com/$1 [R=301,L] RewriteRule ^tag(.+)$ http://...
1
vote
0answers
22 views

How to list taxonomy terms in reverse order?

Hi I have taxonomy terms that needs to be displayed in reverse order. I have parent term"Arizona" and sub term "phoenix" and needs to be displayed like "Phoenix, Arizona" on the page. do you know how ...
1
vote
2answers
13 views

WordPress User Taxonomy Saved Values

I have been following a tutorial on setting up a user taxonomy on Justin Tadlock's site. I got everything working but I wanted to adjust the taxonomy from a single radio selection to a multi checkbox ...
0
votes
1answer
26 views

I want to change the slugs of my terms dynamically

I'm looking to change my slugs dynamically so that they are displayed with the names of my terms, for that I created an option in the administrator panel that should allow me to start the process, but ...
0
votes
0answers
44 views

I'm trying to sanitize_title() the terms and display them correctly

Hi i'm looking for a track to make sure that for each terms of taxonomies: that I can make a sanitize_title () of the name of the term and correctly display the name of the term in the slug of each ...
0
votes
2answers
18 views

Archive for custom taxonomy

I have a custom post type movies that I have defined in function.php function create_post_type() { register_post_type( 'movies', array( 'supports' => array('title', 'editor' , 'excerpt' , '...
0
votes
1answer
29 views

Topic won't save for a custom post type — how to debug?

In two of my site's custom post types, the topic (in the Topics meta box -- see screenshot below) won't save. This is not a custom meta box, I don't think. At least, I think it comes standard with ...
0
votes
1answer
22 views

Getting the terms from “Beautiful Taxonomy Filters” Results ot Integrate into “Ajax Load More”

I’m trying to get BTF integrated with the Ajax Load More plugin and am having trouble on the filter results that are using two differen t taxonomies. Basically I just need to know how to query/call ...
1
vote
2answers
19 views

list taxonomies from a custom post type

I registered a Taxonomy for a custom post type called events. // Register Custom Taxonomy function events_categories() { $labels = array( 'name' => _x( '...
0
votes
0answers
58 views

is_tax not working for custom taxonomy

I am trying to over-ride a custom taxonomy file from my plugin. Actually, I have 2 custom taxonomies: destination & activities. I have successfully over-ridden the taxonomy template for activities ...
2
votes
3answers
134 views

Display sub-taxonomies based on SELECTED parent-taxonomy

I have two drop downs. The first one contains list of parent taxonomies from a custom post type. And the second one contains all the sub-taxonomies at a time. But I'm trying to display only those sub-...
0
votes
1answer
30 views

How to always display a specific post from the search result first

I created a search filter that displays posts randomly, and I wonder how can I always display a specific post item in the first position of the search results and display the rest of the items ...
0
votes
1answer
18 views

What does wp_term_taxonomy.parent reference?

My initial thought was that it referenced another taxonomy (i.e. an FK from wp_term_taxonomy.parent to wp_term_taxonomy.term_taxonomy_id). ORMs like Corcel are built under this assumption. However, I'...
0
votes
1answer
11 views

Can I retain custom taxonomy data when uninstalling a third-party plugin that created it?

I installed and experimented with a third-party plugin. It created a custom hierarchical taxonomy, which I populated with a large number of terms. The plugin did not match my needs, so I want to ...
0
votes
1answer
30 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
17 views

Generate URL custom type post, category and post Wordpress

There are several types of posts: audio, video, book, as well as categories that are the same for everyone: category1, category2, etc. When creating a specific type of post, a category is selected. ...
0
votes
1answer
17 views

How to show children terms even if they are empty

First of all im not good at PHP so it might be the problem... So after trying to do what I want without success I want to ask our help. For most of you probably it will be easy as eating breakfast. I'...
0
votes
1answer
34 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
14 views

Add specific content to a taxonomy results page

i use a plugin which generates a search result page where all users will be displayed who have linked to this taxonomy the URL looks like this: http://www.example.com/members/?skills=html I want now ...
0
votes
1answer
18 views

Add pagination to for each taxonomy terms

I am tring to add a line of code that paginate the taxonomies to serveral pages this lin is a function i created called wpbeginner_numeric_posts_nav(); but every time i add the function after ...
0
votes
1answer
14 views

get taxonomy list in a page in the wordpress

I have this code in a page in the WP for show new taxonomy <?php $terms = get_terms(array( 'hide_empty' => 'false', 'orderby' => 'name', 'order' => 'ASC', 'taxonomy' =&...
0
votes
0answers
64 views

Can't add new post PHP Catchable fatal error: Object of class WP_Term could not be converted to string in wp-includes/taxonomy.php on line 2334

I tried to add new post but this error appear : can't add new post PHP Catchable fatal error: Object of class WP_Term could not be converted to string in wp-includes/taxonomy.php on line 2334
0
votes
0answers
26 views

Custom Post Type as a Taxonomy

I have a CPT "Locations" and would like the CPT to also be a taxonomy for ALL other posts/post types. The main point is to have the taxonomy always match the CPT "Locations" without having to ...
0
votes
1answer
30 views

Add custom taxonomy terms to Wordpress menu dynamically & append #slug to url

I have a 2 part question. This is my first post here, so apologies if I am doing it wrong. I have a custom taxonomy (created with WP Toolset) called 'Author Categories'. What I need to have done is ...
0
votes
0answers
12 views

How to disable or hide some taxonomies on frontend?

Basically there is a filter on the website I have to modify. It allows to find real estate properties on the website. The problem is that there are PLENTY of values in the select field for LOCATION. ...
0
votes
0answers
15 views

Set the limit of taxonomy per page

$ency_args = array( 'taxonomy' => 'mycategory', 'orderby' => 'name', 'order' => 'ASC', 'hide_empty' => false, 'posts_per_page' => 6, how can i set the limit of showing of ...
0
votes
1answer
21 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
40 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; ...
-2
votes
1answer
19 views

Taxonomy term RestApi data 10 rows limitions

i have created a pod taxonomy(Products) in Wordpress ... i have 16 item of terms(categories) for product taxonomy ... but after going to this routes : http://...../wp-json/wp/v2/product_categories , ...
-1
votes
1answer
14 views

IF taxonomy archive is hierarchical THEN

I'm trying to put in a conditional in my archive.php that sorts our whether the taxonomy is hierarchical or not. This is what I have so far but it doesn't work. <?php if ( is_taxonomy_hierarchical(...
0
votes
1answer
27 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
1answer
38 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
1answer
25 views

Number of categories slowing down the site

I had over 10K categories and posts on my WP site. Posts are created but don't have any content. I am hosting the site on mid-tier option for WP sites on Siteground. Due to a large number of ...
0
votes
2answers
18 views

get_terms with posts that have a different taxonomy with term x

Here's the situation; I am using get_terms to retrieve all terms from Tax 1 with posts associated with it. Using the following $args = array( 'hide_empty' => 0, '...
0
votes
1answer
23 views

Display post after choice two taxonomy terms

I display post by a term filter (first taxonomy) and it works very well. I add an other list of terms filter (second taxonomy). I would like to display posts after choice a term in each taxonomy. ...
0
votes
0answers
25 views

Display products wich share custom taxonomy with a Custom Post Type

I would like to create a shortcode that display products wich share custom taxonomy with a Custom Post Type. Example: I have a Custom Post Type called "Songs". I have a Custom Taxonomy called "Music ...
0
votes
1answer
33 views

How to display only the direct children of a term on a taxonomy page

I would like to have a couple of (automatically generated) taxonomy pages created by term name, term description and a listing of only the next level of subterms. (No parents and no grandchildrens) I ...
0
votes
0answers
14 views

How to display a post slider of one multisite blog on the main domain homepage?

I have a WordPress network of blogs and I want to display a post slider of posts from one blog on the main domain homepage. Is there a way to make a "virtual category" in the main site that refers to ...
0
votes
0answers
33 views

What is this Query? and why its taking too much time? Any way to optimize it?

Query: SELECT t.*, tt.* FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.taxonomy IN ('post_tag') AND tt.count > 0 ORDER BY t.name ASC; Query_time: 3....
0
votes
1answer
24 views

Any way to make custom taxonomy field searchable?

I have added custom taxonomy field on tags, but when I search that field search is not working. Any way to make it searchable in WordPress dashboard?