Questions tagged [taxonomy]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

create filter on taxonomy admin page

Hello im trying to filter terms on the custom taxonomy page. But without luck. Any way to add filtes on the taxonomoy page?
0
votes
1answer
14 views

How to target all woocommerce categories that don't have any subcategories in them?

I want to target all pages (product categories) that are displaying the products themselves. My woocommerce settings set to show only categories/subcategories (unless there are none) and then by ...
1
vote
1answer
34 views

$_FILES empty on created_{taxonomy} and create_{taxonomy} yet is is not on edit_{taxonomy}

been struggling with a bug. On created_{taxonomy} hook yet in edited_{taxonomy} hook works and upload the expected file with no issues. As per the following code I added custom field type along with ...
0
votes
1answer
39 views

WooCommerce WP_Query using tax_query returns no results (0 = 1)

I am trying to get specific Products from WooCommerce baseed on a Product Attribute (taxonomy). $args = array( 'post_type' => array('product', 'product_variation'), '...
0
votes
0answers
9 views

Get The Most Recent Post of a Specific Term From Current Post

I'm developing a website for a webcomic and I'm having problems getting the page system to work. I have a custom post type set up for comic pages, and the pages are organized into volumes (with ...
0
votes
1answer
17 views

Setting posts_per_page for taxonomy term template

I have a custom taxonomy term page set up to display posts associated with that term (taxonomy-insight_type-academia.php). I figured I could use the following to limit the posts on that page based on ...
2
votes
0answers
22 views

Mixed unrelated taxonomy in permalink

we have a situation where we want to build permalinks using mixed (unrelated, ie not hierarchical) taxonomies in permalinks on a wordpress site. and we dont want the taxonomy name in the actual link. ...
0
votes
1answer
15 views

WP REST API not retrieving all categories

I am developing a project that is using the WP REST API. After some tests, I realized that it's not retrieving all the categories based on what I am trying to GET. In precise, there are supposed to be ...
0
votes
0answers
19 views

How can I change the canonical URL of an Ajax-created taxonomy URL in wordpress?

I use wordpress with woocommerce and have URLs like this (hiding the domain name since the site is not ready yet): /filter/product_tag=computer-accessories/ however, it has a canonical tag of my ...
1
vote
0answers
13 views

Rewrite Rule Working for all but one of the taxonomies created

I have a hierarchical taxonomy, county, which takes a parent and child taxonomy as well as a rewrite rule to include them in my permalinks. I have three of these county taxonomies, but only two of ...
1
vote
1answer
32 views

How to get the top level parent term Advanced Custom Field values in the child terms

I am using Advanced custom fields in my product_cat taxonomy to display fields on my product category pages. I would like to be able to edit the top parent product category and have those changes ...
0
votes
1answer
14 views

Test if taxonomy on current page has at least one term with more than one page tagged with that term

Is there a (simple?) way to test if a taxonomy has at least one tag that is used on more than one page? I know how to see if there are any terms in a given taxonomy on the current page. And I know how ...
1
vote
0answers
14 views

Is it possible to have dedicated page for parent/child taxonomy?

I've been working non-stop on this for the past few days. I have a post type, floorplan, which has a hierarchical taxonomy called County. Each County taxonomy has child taxonomies with the names of ...
0
votes
0answers
6 views

Adding Full Link List of CPT UI taxonomy to Archive Page - Displayed by Parent and Shows Empty

I am trying to create a link list of custom post taxonomy to show by parent. Currently I added it in via a widget but it doesn't show empty categories. I want it to be a normal list of all category ...
1
vote
0answers
18 views

Possible to remove taxonomy from permalink if uncategorized?

I'm working on a client's website who requested that the custom search functionality I'm building out provide a number of 'pretty' permalinks that they can use for ad campaigns. The post types I'm ...
0
votes
1answer
36 views

How to display a value inside a post with a specified category from a category custom field? [closed]

I added a custom field to category using ACF, something like this: so that I can specify a value for each category (like an image or text). How can I call for or display this or these values inside ...
0
votes
1answer
13 views

Split taxonomies on different pages

I'm working on a Woocommerce website and created a new taxonomy activity. I've added that taxonomy to the post type Product. So a Product can have one of the following activity: Museum Food & ...
0
votes
1answer
34 views

Custom permalink structure for custom post types including multiple taxonomy

The goal is to have a structure like this: example.com/tax_1/tax_2/post_name This code produces the right structure but the post can't be found (404) // Register custom post types function ...
0
votes
1answer
37 views

Clear Terms from Taxonomy for Specific Post IDs?

Trying figure out how I can use some SQL/$wpdb->query to delete all the terms from a taxonomy that are related to specific post IDs. The following works beautifully to delete all the terms from a ...
0
votes
1answer
26 views

View the complete list of a taxonomy in the navigation menu

I have a taxonomy called "country" and I need to visualize it as a list of categories can someone help me? <li><a href="<?php echo esc_url( home_url() ); ?>/country/...
0
votes
1answer
14 views

Some categories missing on wp-admin/edit-tags.php?taxonomy=category

When I go to /wp-admin/edit-tags.php?taxonomy=category it says there are 19 categories, but will only list 13 of them. There is no second page to go to. If I Search Categories for " ", all ...
0
votes
0answers
22 views

Taxonomy.php inheriting first post

I created a generic taxonomy.php file to list posts with certain terms. <?php get_header(); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <a href=...
1
vote
1answer
18 views

How to get category URL with the slug?

I have a variable that contains the slug of a category. With that slug I want to create a link to the archive page that displays all the posts in that specific category. What is the best or fastest ...
1
vote
0answers
15 views

Modify the query method when adding category filtering function to the custom post list

The following code, which I found in the forum, adds a category filtering function to the custom post list. This code can correctly filter the single-select taxonomy. My custom post type, in actual ...
0
votes
0answers
26 views

WooCommerce - how to auto-update Minicart?

I am using AJAX to autoupdate Cart in WooCommerce, and I use code from this article (as shown below): Auto update cart after quantity change and it works well for the Cart amount. However, the Mini-...
0
votes
1answer
12 views

How do i get the taxonomy term name on the CPT archive page?

In archive-news.php, i've tried global $wp_query; $tax = $wp_query->get_queried_object(); echo $tax->name; But this gets the taxonomy, not the taxonomy term. I need to print the tax term name ...
0
votes
1answer
21 views

Multiple Tag Filtering

I am writing a theme for Wordpress and I need a tag filter tool for posts, that can filter by multiple tags simultaneously, without a submit button, no checkboxes, no radio’s, and a show all posts ...
0
votes
0answers
10 views

Add copy to individual taxonomy and term archive page

I have a product attribute setup as 'style' and a term of 'illustrative', so I wanted to add some seo copy to the bottom of the illustrative archive page of my woocommerce shop using the hook '...
0
votes
1answer
28 views

get taxonomies from terms

I have two post types Documents News Items with categories for each post type, Documents -- PDF, Word, Excel News Items -- Articles, Releases BUT they share the same tags. Documents -- BOSS, EFF, ...
0
votes
0answers
9 views

Automatically attach subpage to taxonomy terms

I'm creating sports news page which popularizes some not "well known" sports. It has "Sports" taxonomy, which has terms "Sport 1, Sport 2, Sport 3". It is used for displaying sport-specific posts on ...
0
votes
0answers
9 views

How do I export categories, site stats, comments and posts from wordpress to excel

I need to export the posts, categories, the author, the page views and comments from WordPress to excel. This is because I need to analyze the performance of each author and each category based on ...
0
votes
1answer
34 views

List of all posts from current category on single portfolio page

Im using the wordpress theme bridge and the portfolio with different categories. I edit the portfolio-loop to get a list of all items of the current category. I found the following code here and ...
0
votes
1answer
27 views

Display Custom Taxonomy Name As A Shortcode

On my WordPress site I have created a custom taxonomy named "game" which lists different gaming titles. I want to be able to display the names of these titles on my posts using a shortcode. Prior to ...
0
votes
0answers
12 views

How to disable ajax in Taxonomy add/edit pages?

Is there way to disable the automatic addition without page reload in taxonomy add/edit pages? eg category pages ..if I add category is added without page reload but I want to disable that. Due to ...
0
votes
1answer
34 views

Show the parent taxonomy by creating shortcode in woocommerce?

How would I create a shortcode to show the parent taxonomy in woocommerce? My product categories should be like: - Food -- Fruits --- Healthy Fruits --- Organic Fruits -- Meat --- Pork --- ...
0
votes
0answers
18 views

How to disable the use of certain words in categories

I would like to "censor" the creation of some categories, meaning, I don't want that some terms/words could be used when creating categories. Can anyone help? Thank you all.
0
votes
0answers
29 views

get the term_id of current taxonomy page

I want to get the particular id of taxonomy in taxonomy page .I do this code as separate plugin file i use this but it not give me the id of current taxonomy page and show this message Notice: Trying ...
0
votes
0answers
12 views

Custom category taxonomy links for woo-commerce products

I am needing my woocommerce meta/taxonomy links to output in a specific way, the following code is pretty much the closest I have found/gotten: $taxonomyName = "product_cat"; $parent_terms = ...
0
votes
1answer
13 views

How to group all terms children's in custom taxonomy?

I have a loop term of my custom taxonomy here: <?php $terms = get_terms( array( 'taxonomy' => 'customtax', 'hide_empty' => false ) ); $i = 0; ...
0
votes
0answers
17 views

Display Custom Post Type Based on Taxonomy With WP_Query()

I would like to pull in 3 posts from a custom post type called 'articles' that have a 'Featured' custom taxonomy term. I'm using the code below, but it isn't pulling in just the posts with the '...
0
votes
0answers
37 views

WordPress Ajax - Filter Posts by Category

I'm having trouble getting this Ajax tutorial to work - if anyone is able to help me figure this out it would be much appreciated. I followed the instructions step by step and have gone over the code ...
1
vote
0answers
9 views

Disable stored tags queries in admin page when posting a new post

First of all, I am sorry because I am a bit newbie here and I am still learning forgive me, please. I have a Wordpress website blog and I have a very big database of tags stored in MySQL the problem ...
0
votes
2answers
53 views

Hierarchical taxonomy list with modificated term links

I have two functions displaying a term list of the selected taxonomy: First function: $terms = get_the_terms(get_the_ID(), 'MY_TAXONOMY'); if (!is_wp_error($terms) && !empty($terms)) { ...
0
votes
0answers
22 views

Output custom woocommerce category and tag links

Im trying to output woo commerce categories and tags in a kind of specific way, I want to essentially create a list of child categories and tags in a similar style to how woocommerce does ...
0
votes
2answers
26 views

Use ACF Category Image for all Taxonomy Archive Views

I’m wondering if you could help with some code I’m struggling with. I’ve got an ACF Image Field on the Post Category Taxonomy. I need to add it into the post loop so the category image shows up ...
1
vote
0answers
16 views

Check for taxonomy archive on search results page

I'm looking for a conditional tag to check if a taxonomy archive page(link) is displayed on my search results page. is_tax(); only seems to check if the current page is a taxonomy archive page and ...
0
votes
0answers
42 views

wp_query with meta_query and tax_query

I am trying to find a way to combine a meta_query and a term_query and i got confused with the research. $sport = 'basket'; $args_p = array( 'posts_per_page' => 10,...
0
votes
0answers
19 views

How can I get individual information for a taxonomy child term?

The post page created by wordpress custom post is displayed on the taxonomy archive page. At that time, how can I retrieve the name of each taxonomy child term linked to each post? For example, ...
0
votes
1answer
26 views

How to order taxonomy terms by most recent post?

I have a list of terms showing in slug order but I need to order them by most recent posts, so it will be changing depending on what term has the most recent entries... Is there a way to do so? I ...
0
votes
0answers
15 views

How to rewrite this custom taxonomy URL?

I have url structure like this: http://localhost:8888/standard/behold_services-range/term but I need it like this: http://localhost:8888/standard/services-range/term in first case 'behold_services-...

1
2 3 4 5
36