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
11 views

How can I create a multi-category site like TutorialsPoint with multi-pages

As you may know, TutorialsPoint is an indian tutorials website that includes many softwares/OS/coding languages. When you click on a subject in a certain category (I know how to do this part with ...
0
votes
0answers
25 views

Order by terms for specific custom taxonomies

I am using the following code to try and order property listings by state for For Sale and Sold custom taxonomy terms $terms = get_terms( 'state' ); // $terms = get_terms( array('status', 'state' ...
0
votes
0answers
11 views

Getting index of a post within taxonomy (“post index / total posts” counter)

WordPress has function get_next_post_link and get_previous_post_link that allow to get link to nearby posts. I'm trying to create "1 of 10" counter (where 1 is index of the current post and 10 is ...
0
votes
0answers
10 views

Bulk Add Term to all Attributes taxonony

I've searched everywhere but don't know where to start with this. I've imported a data into a wordpress/woocommerce which has alot of attributes, and alot of terms in the taxonomy of those ...
1
vote
0answers
12 views

Get taxonomy based on another taxonomy slug

I have 2 custom taxonomies associated with 'property' custom post type. 1 - prop-city 2 - prop-type can i get property type based property city? I need in properties city page when i click on ...
0
votes
0answers
26 views

How to create a A-Z glossary

I am working on a plugin that lists all the available sites on our multisite, I have it working but was trying to find a way to navigate by letters or just create an A-Z glossary. <?php function ...
0
votes
1answer
27 views

URL issue after setting up Custom Structure in Settings >> Permalinks

I've tried to Google this but to no avail. I'm a newbie at programming but I can say I'm adept at configuring WP - pretty please, please bear with me. :) I have a CUSTOM_TAXONOMY that when viewed, ...
0
votes
1answer
31 views

How to assign a default/priority taxonomy to be shown in url in case two taxonomy items are selected

I have a custom taxonomy (ex. taxonomyfoo) created with CPT UI plugin and assigned this taxonomy to the standard wp post. I have also used below code to add the taxonomy slug in the url (%taxonomyfoo%...
0
votes
0answers
12 views

Create a Taxonomy for Easy Digital Downloads (EDD) Plugin

I was trying to create a Custom Taxonomy called "Metodología" for the EDD Post types, but I dont know what I need to change in my code to affect this Custom Content type, can someone help me? I think ...
0
votes
1answer
10 views

Taxonomy doesn't follow slug permalink structure

I started with a fresh template and added a Post Type according to specification at GenerateWP. I then added a taxonomy to the custom post type, also according to the above-referenced website: // ...
0
votes
1answer
24 views

How to display all terms from all taxonomies in post, but separately for each taxonomy?

If I want to display all terms assigned to a custom post with custom taxonomy, I could use for eg. <?php the_terms( $post->ID, 'custom-taxonomy', '', ", ", '' ); ?> but in this solution I ...
0
votes
0answers
23 views

Wordpress search query, how to modify the sql

I have a problem with the query search, which means I would only look for posts with post_status = published. The problem is that after adding my conditions, wordpress writes an "OR wp_terms.name LIKE%...
0
votes
1answer
52 views

line order number start numbering from second line (SOLVED)

if(is_tax()) { $currentTermType = get_query_var( 'taxonomy' ); $cat_icon = get_field('logo', $queried_object); ...
0
votes
1answer
29 views

Use the custom post type archive for taxonomies?

Im using a archive-cpt.php template page to display all my custom post type posts but now I will be categorizing them in taxonomies. I want to add a dropdown filter navigation that will be populated ...
0
votes
1answer
18 views

Is there a function that replace category name with a icon?

I am using a Custom Post Type and I have a Taxonomy name "Type" this taxonomy have A y B taxonomy names. If possible a function that remplace the name of Taxonomy with an icon or image? Thank you!
0
votes
0answers
30 views

Custom dropdown list taxonomy not saved

I'm currently modifying a theme, freelanceengine, and I'd to add some customs fields in profile editing page. I succeed in creating the customs fields but my changes are not saved <div id="...
0
votes
1answer
12 views

Change custom post taxonomy values from front-end

I'm developing a ticketing system which already has the custom post type for the tickets with a "status" taxonomy. I have the tickets displayed in a table on the front-end and the status column has ...
0
votes
1answer
26 views

Show post count in custom taxonomy page

How can I show the post count in a taxonomy page. I tried some codes but I could not get success. I will locate this information on the top of taxonomy page. foreach ( get_the_terms( get_the_ID(), '...
0
votes
0answers
16 views

get_the_terms taxonomy for more than one

I have this Code that checks for a taxonomy called 'video-genres' It works fine, but I want to to check for another taxonomy called 'video-categories'. It must basically check for one or the other ...
0
votes
0answers
22 views

Display taxonomies that used

Well, I need th display names of taxonomies that used by post of special taxonomy . for example I have a taxonomy for restaurants and in that taxonomy I have two parent : City and Country , so I have ...
0
votes
3answers
95 views

Show taxonomy list with taxonomy images ( SOLVED)

i have a taxonomy list in the home page made with https://wordpress.org/plugins/wp-categories-widget/ plugin .. i crated image field for taxonomies with ACF. i can show tax image on archive page but i ...
0
votes
1answer
26 views

Bulk assign posts to a category using SQL (MySQL)

I am migrating a wordpress site from QTranslate-X to WPML (2 multi-lingual plugins). In the migration, all my posts that belonged to a given category (healthy in English, sain in French) were ...
0
votes
0answers
18 views

How to display category image instead of text on product archive and single

How can I display category as an image rather than text? For example, if category is "Adidas", I would like to display logo of said brand. The category images would be displayed on product archives ...
0
votes
0answers
24 views

How to get all the terms from a custom hierarchical taxonomy via REST api?

This post can be a solution, but I guess there could be something more linear or native: https://stackoverflow.com/questions/42462187/wordpress-rest-api-v2-how-to-list-taxonomy-terms The official ...
0
votes
0answers
12 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
1answer
43 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
18 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
1answer
116 views

Repeater field empty taxonomy and saved choices

I'm in trouble right now and I need you to help on a little problem that I have. For one of my clients I need to use ACF repeater field and populate it with empty categories from a custom taxonomy ...
0
votes
0answers
25 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
14 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
27 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
37 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
11 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
103 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
33 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
36 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
33 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
36 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
46 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
12 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
22 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
49 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
56 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
57 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 ...