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

learn more… | top users | synonyms

1
vote
0answers
15 views

Get posts sharing taxonomy term with current post's

I have a post and I want to get a loop with a list of all other pages, which are in the same taxonomy/taxonomy-categorie. Right now, I'm only able to insert the taxonomy name by myself. I think it ...
-1
votes
3answers
36 views

Wordpress site with embedded menu - gives You don't have permission to access /wp-content/themes/xxx/taxonomy-redirect.php on this server

I've inherited a website which has a menu structure that is not working. he developer built a site at huge expense but has then left them with a partially working site. It is a WooCommerce site with ...
-2
votes
0answers
25 views

Siloing with wordpress - For professionals only?

want I want to do: I want to change the structure of my website. I have two custom post types(CPT) "car", "bike" and a blog. I am using CPT UI Plugin for the custom post types. But I don't get ...
1
vote
0answers
19 views

Post tags saving as both tag name & tag ID on post update when tags are displayed as checkboxes

I've created a custom non-hierarchical taxonomy and changed it to display as check boxes instead of a tag cloud. However when I am in the post editor and select on of the available tags then update ...
0
votes
0answers
8 views

Multiple and inter-related Taxonomies Dropdowns for filtering posts

Im trying to build a simple search, where the user can filter posts from 2 dropdowns, each one with the terms from a custom taxonomy. When the user selects a value from the first dropdown it would ...
0
votes
1answer
9 views

qtranslate-x problem with custom term description

I use qtranslate-x plugin for site translation. Works well, but on my custom term's page I see description in all languages. I use this code to display term information: $term = $wp_query->...
0
votes
1answer
34 views

WP Query - filtering terms with regex

is there a possibility of filtering posts by terms using regexp? My code doesn't quite seem to work. $tax[] = [ 'taxonomy' => 'tax_name', 'field' => 'name', 'terms' => $...
-1
votes
0answers
20 views

Replace woocommerce product categories taxonomy with already existing categories taxonomy

I have a theme that already has custom post types with taxonomies registered to it I also have woocommerce and as I'm integrating woocommerce with this theme I need to replace the registered ...
0
votes
1answer
16 views

Resize $term attachment using url

I'm using this plugin for attaching an image to a custom taxonomy. The plugin's function returns the attached term's image as following: function get_wp_term_image($term_id){ return get_option('...
1
vote
0answers
13 views

get the taxonomies terms associated with users

I’m building a search form with meta_query to get users based on meta_key and meta_value. Some meta_key are taxonomies. It works very well but in my select, i have all terms and some terms are not ...
0
votes
0answers
16 views

can I separate two taxonomy (category) loops on one page

I have created a staff and teachers page with custom posts and categories. I currently have them display in an archive-teachers-and-staff.php template with no filter. I am using the date to get the ...
0
votes
2answers
16 views

Displaying the Taxonomy and a Queried Term on a taxonomy.php page?

I'm using a WP plugin Called Search and Filter to filter a custom post type — a user directory. The plugin lets a user filter the directory by specifying terms. It will also let a user filter the ...
0
votes
0answers
14 views

Page to display different taxonomy categories

I've set up some custom post types with custom taxonomies. The categories (of the taxonomy) should act like subpages. I'll give you a short setup of my page structure so that everyone knows what I ...
0
votes
1answer
32 views

Custom taxonomy and query multi conditions

I have this query $query->set( 'tax_query', array( 'relation' => 'OR', array( 'taxonomy' => 'location', ...
0
votes
1answer
39 views

Filtering elements by taxonomy slug

In my theme's article page (single.php) I have the following code filtering a div to be shown only on certain category: <?php $categoria_post = the_category_id($categoria_post); if ($...
0
votes
2answers
23 views

Custom taxonomy hide meta box but show in menu

If set show_ui false, this hide the taxonomy meta box and admin menu link both, how to hide only meta box? $args = array( 'hierarchical' => true, 'labels' => $labels, ...
0
votes
1answer
36 views

Get posts of a custom post type from category from taxonomy?

The theme I'm working with has a custom post type, "portfolio", inside a custom taxonomy, "portfoliocat" (post type and taxonomy definitions here). It is working ok: in the backup menu I can see the "...
-1
votes
0answers
15 views

How i can get custom post id using custom taxonomy id?

<?php $pcats = get_terms('pcat'); //print_r($pcat); // echo $pcat = get_the_ID(); exit; foreach ($pcats as $pcat){ echo $pcat->term_id; ...
3
votes
0answers
44 views

How to find objects by terms

I am struggling with a search filtering. Firstly, my script is searching for users using natural search SQL. The query returns ids of users. Now I would like to filter them by terms which are assigned ...
0
votes
0answers
30 views

Implementing custom post type categories / taxonomy? (theme building)

I'm building my own theme for a small business website. This website has a navbar on top, with a dropdown under "Projects", listing several categories. As of now, I have all of these categories listed ...
-1
votes
0answers
24 views

What is the one-query (or the fastest) way to get posts and their terms (more taxonomies)?

Now this might seem like a similar question One query to get posts and their taxonomy terms but it is just similar and does not have proper answer. Goal: I need to get limited number of posts and ...
-3
votes
1answer
18 views

How to create a custom widget in dashboard that shows stats for custom post type

I have a custom post type called Locations. I want to create a widget in the dashboard that shows number of posts in that post type, post taxonomy and number of item in each taxonomy. Any ideas?
0
votes
1answer
38 views

How to Manage and link certain custom taxonomy?

I'm creating some kind of soccer dedicated website.Assuming we created 4 different taxonomies: Teams, Players, Tournaments, Managers. Team includes two different types: National Team Club ...
0
votes
0answers
8 views

Create a post on registration with title include user first name

I use this code for create a post (-type) on user registeration: function create_new_user_posts($user_id){ $userinfo = get_userdata($user_id); if (!$user_id>0) return; $my_bio_post = ...
3
votes
1answer
51 views

Save Filter for Taxonomies

I want to get rid of undesired HTML, mostly being published by my editors when copying text from other sources, like other pages or from Word Therefore I use add_filter( 'content_save_pre' , '...
0
votes
1answer
26 views

Get pages only with a specific taxonomy

I added a custom taxonomy called 'post_tag' to the pages, and I am trying to make a query that gets only the pages that have a specific tag set. I already tried in several different ways, even using ...
0
votes
0answers
20 views

Order posts by term in alphabetical order

I know it's possible to order by terms, but having migrated a huge amount of data from a different CMS, I'm left with a list of brands that are taxonomy terms. I'm using ACF to present the terms as a ...
2
votes
1answer
31 views

Is there a filter hook that I can use to change how taxonomy term names are displayed?

I need to hide a custom taxonomy's terms' names on the frontend while preserving them on the backend. Instead of the terms' names I need to display pseudonyms. I can't find a single filter hook to do ...
0
votes
0answers
23 views

Help to fix custom post rewrite + taxonomy. Simple pages show 404

I'm getting 404 for each page. I want to have structure and pages like: url/page-sample url/taxonomy url/taxonomy/custom-post Example of structure (just trying to explain): url/about-us-page url/...
0
votes
0answers
20 views

Taxonomy archive: Query all posts first, and then group by taxonomy term?

I have two taxonomies: 'season' and 'style'. On my 'season' archive template, the following query groups all the 'season' posts by their 'style' term. This works great. But the problem is that I ...
0
votes
1answer
29 views

Permalinks for a custom post type - with a page template (custom query) and taxonomy archive

I'm having trouble getting my permalinks working with a specific custom post type setup. Here's the code for the custom post type: function jc_attactions() { $labels = array( 'name' => '...
0
votes
1answer
98 views

WP Job Manager - display search results from custom search form in taxonomy-job_listing_category page

i want to ask something about wp-job-manager plugin. i have been already created a taxonomy_job_listing_categoy template to list all jobs from a certain job category. You can see an example here: http:...
0
votes
0answers
39 views

WP Query with sticky posts and tax_query

I have this query; $posts = new WP_Query(array( 'post_type' => 'post', 'posts_per_page' => 5, )); Which correctly places sticky posts at the beginning. However,...
0
votes
0answers
16 views

Display posts in a custom taxonomy, grouped by a different taxonomy

The setup: I have a custom post type called products. I have a custom taxonomy called styles with terms modern, classic, rustic. I have another taxonomy called seasons with terms fall, winter, ...
1
vote
1answer
59 views

Filter blog archive by category in URL

I've created a fairly basic form that allows users to filter post type archives by their taxonomies. On custom post types this is super simple to do by simply setting ?taxonomy_name=term_slug in the ...
-2
votes
1answer
77 views

Get posts that matches specific terms of multiple custom taxonomies

I'm working on a page that show a lot of products. My structure is Product (custom post type) -->Brand (custom taxonomy) ------>Brand A (custom term) ------>Brand B (custom term) -->Department (...
1
vote
0answers
37 views

Attaching taxonomy data to taxonomy with wp_insert_post

By WP User Frontend I create a registeration form with some checkboxes, and use wp_insert_post and update_user_meta for create a new post (post type pavilion) on user registration.I want when checked ...
1
vote
1answer
40 views

Return Taxonomy/Term Information with Posts (WP_Query/get_posts)

Is it possible to return taxonomy/term information for posts along with the posts themselves when querying with get_posts? I have around 150 items I am querying so I don't want to loop and pull each ...
0
votes
1answer
69 views

wp_get_post_terms on custom post type with custom taxonomies returning an empty array

I am trying to get the taxonomy values associated with my custom post types. I have a function which fetches a post ($object)'s taxonomies, then cycles through the taxonomies and gets the values for ...
1
vote
1answer
42 views

How to get post's current parent term ID?

How do you get the ID of the parent term of the current child term assigned to a post. For a custom taxonomy? Custom taxonomy: "location" Countries Japan USA Mexico Cities New York Austin ...
0
votes
0answers
9 views

Display nested taxonomies with current class

I have a Wordpress site with a Products custom post type (I'm not using Woocommerce as it is not an ecommerce site). The custom post type has taxonomies with 2 levels (top-level categories and sub-...
0
votes
0answers
10 views

Same Permalinks for Custom Post Types and Category Taxonomy

I am trying to figure out how it is possible to use the default WordPress Category taxonomy across my entire WordPress site, including three custom post types that I have defined. I would like to ...
0
votes
0answers
17 views

sub categories and products that are directly assigned to main category not displaying

I have a scenario in which i have a side bar. In side bar all the main categories are displayed. There are also some sub categories that are assigned to main categories. Now i want to display both sub ...
1
vote
1answer
44 views

How to get the number of child categories a specific parent category has?

How do we count the number of child categories of a parent category? I am using a custom taxonomy, called: "authors". I found this code, which does count the number of child categories, but only ...
0
votes
0answers
19 views

Taxonomies not display the content

I create a custom post and a page to post a specific content. My functions.php: add_action( 'init', 'create_post_fotos' ); function create_post_fotos() { register_post_type( 'Fotos', array( ...
0
votes
0answers
12 views

Use tax_query to sort posts by most “categories in common”

I know I can use tax_query but what I really want is to sort them by "most categories found that are equal" Is there a way to do it easily?
0
votes
0answers
16 views

Display admin notice on category creation

I'm trying to display a custom admin notice when admin creates new category but can't make it work. My code so far is: function pippin_admin_notice() { echo '<div class="updated"><p>...
0
votes
0answers
29 views

Custom Post Type Re Write not working

I am trying to get my custom post type single.php URL to have the category in it. I am using the default wordpress categories (I didn't register a custom tax.). My current URL (from the base) looks ...
0
votes
1answer
26 views

Best approach to allow front-end display of posts’ reviewers?

My first question here; please forgive any protocol lapses. I manage an academic journal that publishes on Wordpress. We use Co-Authors Plus to allow collaborative articles. Each article also has two ...
0
votes
1answer
25 views

Attachment Metadata inside of Loop

Basically, I'm trying to call attachment info to display withing a loop, for use in an image gallery. I know I need to use wp_prepare_attachment_for_js($attachment_id) but I can't seem to get anything ...