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
0answers
8 views

Single post showing 404 not found page (permalink problem)

Using WordPress' default post type, I'd like everything to be filed under /blog/. For example: /blog/[parent category]/[child category]/[post permalink]/ Here's an example post: Parent category: ...
0
votes
0answers
22 views

Create/Set Category as Title of Post

I am fairly new to PHP. I wanted a code snippet to create post category from the post title. If the post title does exists as a category, then assign the post to that category. If the category doesn't ...
0
votes
0answers
14 views

How to remove “Taxonomy name:Title” from twentysixteen theme

I am using the Twenty-sixteen theme and have been trying for several days now to remove this part of the theme that displays the taxonomy names at the top. Does anyone know how I can remove this part ...
0
votes
0answers
18 views

Structure wordpress pages for magazine page: Categories vs. Tags

I am creating a wordpress page that serves as the online version of a magazine. In order to make the display and insertion of new issues as effortless as possible I am trying to wrap my head around ...
0
votes
0answers
16 views

Taxonomy checkboxes not showing current status on edit page

Super strange thing happening on post pages, the Categories dropdown and checkboxes when clicked show no change, however after clicking save, or waiting for autosave the checkbox changes it's ...
0
votes
0answers
22 views

Repeater field empty taxonomy and saved choices

Im' in trouble right now and i require you help on a little problem that i have ! For one of my client i need to use ACF repeater field and populate it with empty categories from a custom taxonomy ...
0
votes
0answers
24 views

Wordpress multiple filter

I have this page: https://looneysounds.com/shop# and this code: <ul class="rs_sorting"><h4>Themes</h4> <?php ...
0
votes
1answer
22 views

Possible to merge these two functions?

I have these two functions. The difference is that one is filtering custom taxonomy (is_tax) and the other is filtering generic WordPress tags (is_tag). The work as I'd like them to be it seems that ...
0
votes
1answer
13 views

Custom post types not showing on the standard Wordpress Category page

I’ve taken over website from another developer and they used a plugin to generate a custom post types. The plugin is no longer maintained and sometimes courses an error 505 when try and load the ...
0
votes
1answer
14 views

How can i insert term in a specific language of Polylang?

I have created a plug-in which permits to create a category with slugs. There is the code : wp_insert_term( 'Cat1', 'category', array( 'slug' => 'slug-cat1', )); wp_insert_term( '...
0
votes
0answers
23 views

Dynamically populate Wordpress menu with custom taxonomy

I have a pretty long custom taxonomy and don't want to manually put it into my menu. Additionally I have to do it for 3 languages (using Polylang). Any ideas how it can be done dynamically?
1
vote
0answers
28 views

Taxonomy Query Relation field not behaving correctly?

This is my post entries with categories and tags I am using Taxonomy query When I use relation AND - Tax Query for Category Geed + Tag Cool Nothing shows up. But When I use relation OR 2 The post ...
0
votes
1answer
10 views

Different permissions for same type of post

I am building a website that has a bunch of pages and two post pages: News What's New Both of these pages will be like category pages. How can I allow one set of users to only create content for the ...
0
votes
0answers
11 views

Custom Taxonomy 'archive' template name

I have a CPT with a custom taxonomy. So I have archive-projects.php single-projects.php for the CPT. That's fine. For the custom taxonomy I have taxonomy-project-categories.php Which I use to ...
0
votes
3answers
82 views

How to show category list in WordPress

If anyone know, if there's plugin to customize taxonomy list it will be faster to do. But here's my question. i create post type "product" and the categories. inside post type product, i make ...
-1
votes
1answer
30 views

Adding Advanced Custom Fields to posts without hyperlinks

I'm trying to display custom fields on my post like this: <ul> <li><?php the_field('name_of_placement'); ?></li> <?php ...
-1
votes
2answers
27 views

get_terms() - unexpected '=>' (T_DOUBLE_ARROW) error

I am trying to get the terms from all the taxonomies in an array. but this throws an error like this ..not sure why. Is it the wrong method?: Fatal error: syntax error, unexpected '=>' (...
0
votes
2answers
19 views

Filter “get_terms” query

I'm currently getting the data from a custom taxonomy using this: $terms = get_terms(array( 'taxonomy' => 'my_custom_taxonomy_name', 'hide_empty' => true )); Now, this returns a lot of ...
0
votes
0answers
11 views

How might I display the childless and the children of a custom taxonomy separately on a taxonomy page?

The structure is simple, most posts will have only one category but some might be in a child of that category. I want to display the ones without a child category first, and then all the posts ...
0
votes
1answer
27 views

How many categories can WordPress handle before performance suffers?

I need approximately 2,750,000 unique categories, with hundreds of thousands of parents. I'm going to test it later, but I'm at work. Does anyone know if a basic hosting plan can handle this? There ...
1
vote
1answer
42 views

Display link to taxonomy archive only if it has posts with certain custom field values

Posts on my site describe future events, with the event date recorded in a custom field in Unix time. Generally, only upcoming events are relevant to visitors. As such, I'd like to display ...
0
votes
0answers
11 views

Create archive from multiple taxonomies

My website https://javabgo.com has two taxonomies in job_listing post type. job_listing_category job_listing_region I want to create an archive from two taxonomies. Like this: https://javabgo.com/...
0
votes
0answers
28 views

How do I get fresh post data in post_publish hook?

I'm using the post_publish hook to do some operations in my plugin based on the post's taxonomies. If update a post, calling get_the_category($id) returns the categories for the post version before ...
0
votes
0answers
21 views

I want to edit the tags template by adding text that displays all tags from the listed posts

So I have tag "Iphone", I enter on page of this tag and there I get the: h1 description Listed posts that have this tag I want to add between description and listed posts the sentence: You can also ...
0
votes
0answers
20 views

Taxonomy counter on Taxonomy List(plugin)

I'm using this plugin (Taxonomy List by Muhammad Rehman) and apparently is not longer on develop or support. I need to show the main taxonomy (custom from my theme) and the child's taxonomies with ...
3
votes
1answer
45 views

Taxonomy rewrite question

I have custom post types for dining, lodging, and activities. Each of those custom post types uses a custom taxonomy called region. If, for example, I have a region called "downtown", I would like to ...
1
vote
1answer
47 views

Get terms ordered by post date

What I'm trying to achieve: get n terms from a custom taxonomy ordered by the newest post in each term. This will be used to display the newest m posts under each term. Is there a better way of doing ...
0
votes
1answer
56 views

Rewrite custom post type with taxonomy

On my WP blog my goal is to rewrite urls like: domain.com/blog/**name_of_a_city**/title-of-the-article Until now I have all my links written like this: domain.com/blog/title-of-the-article/ Since ...
-1
votes
1answer
19 views

Taxonomy works in local XAMPP but doesn't work live

this project was done on a Mac, it worked very well in the Mac's local XAMPP and online as well. Now I try to transfer it to my laptop(windows), the taxonomy doesn't work in the laptop's local XAMPP, ...
0
votes
0answers
13 views

Taxonomies delete link get_the_terms

I added the taxonomies in my CPT. I taken this in the wordpress codex. Because I want that my taxonomie hasn't link on the a click. The code is okay but my problem i would like delete the place in the ...
0
votes
1answer
28 views

custom taxonomy terms archive page

For standard posts my theme automatically displays the terms I added for Categories and displays these after the_content(); on the front end, where I click a term and it goes to a page listing all ...
1
vote
1answer
165 views

Gutenberg Modify core taxonomy panel element via wp.hooks.addFilter

I’ve researched modifying an existing editor element… and there’s little out there. But I did get a good reply at Github that pointed me to this: https://github.com/WordPress/gutenberg/tree/master/...
0
votes
2answers
51 views

Way to bulk make all my tags lowercase?

Is there a way in mySQL or otherwise to bulk convert all my tags into lowercase? Thanks!
0
votes
0answers
17 views

Permalink like example.com/taxonomy/post_type/postname

I would like permalink structures like this: example.com/%post_tag%/post_type/postname for posts example.com/%post_tag%/post_type for archive page of post_tag filtered with custom post type archive ...
0
votes
0answers
23 views

Permalink structure like facebook.com

I want permalink structure like facebook.com facebook.com/username/about facebook.com/username/posts facebook.com/username/photos facebook.com/username/videos facebook.com/username/reviews I need ...
0
votes
1answer
33 views

Display 3 level taxonomies

I'm a bit confused how to handle this kind of output. I suppose to display three level taxonomies. When a term is clicked i still need to display his level brothers but also his children's... The ...
1
vote
1answer
26 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
21 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
12 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
23 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
48 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
31 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
36 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 =...
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
136 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
22 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
26 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
16 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
45 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 ...