1
vote
1answer
31 views

Display empty taxonomy terms with get_terms()

I have a function setup as follows: <?php $terms = get_terms("wpsc_product_category"); if ( !empty( $terms ) && !is_wp_error( $terms ) ){ foreach ( $terms as $term ) { ?> ...
0
votes
2answers
19 views

get_terms() doesn't return empty terms even though hide_empty is false

I can't manage to make get_terms() to return the empty terms and I've tried it in a number of ways. Here's the code: $terms = get_terms('device',array('hide_empty' => 0)); foreach($terms as ...
1
vote
0answers
24 views

How can I edit the 'Most Used' tab in the categories meta-box to show another custom taxonomy?

The 'Most Used' tab in the categories meta-box is the one that can be seen in the Edit Post section. I want to replace the Most Used tab, with a tab that lists another Custom Taxonomy, or edit the ...
0
votes
1answer
34 views

“show option all” on list categories doesn't display taxonomy

I have a wp_list_categories list set to display my custom taxonomy. Everything works fine, and now I want to add a show_option_all link. However, when the link is clicked it displays all default ...
0
votes
0answers
14 views

Combined Category+Tag Archive Page

I am currently developing a music blog. I am using Wordpress categories for the artists and the Wordpress tags for featured artists. I want to combine the archive pages for artists and features into ...
0
votes
0answers
19 views

Sorting a list of users by a user taxonomy with Pods

I’m trying to use user taxonomies to sort my userbase into categories and then show a list of taxonomies in the sidebar that on click expands to show the users within each taxonomy. I’m struggling a ...
1
vote
1answer
18 views

display taxonomy slug from term ID

I'm trying to display the taxonomy slug from the term ID, thus my current code is like so: <?php $catinfo = get_category(array_pop(get_sub_field('sector_selector'))); ?> <?php print ...
0
votes
1answer
19 views

How to add images to taxonomies?

Q: Is it possible to add images to all of my taxonomies (default and custom ones)? Note: I do not want to use any plugins (not my favourite solution for design related matters). Usage: I want to ...
0
votes
2answers
28 views

Custom post type post taxonomies

I created simple custom post type with few taxonomies. I <?php $query_params = getQueryParams(); $query_params['post_type'] = 'client'; if(isset($query_params['search'])){ ...
1
vote
1answer
56 views

Make a taxonomy column sortable in the admin?

I have a taxonomy term I have set to show as a column in the admin UI for my custom post type: add_action( 'init', 'create_asset_tax' ); function create_asset_tax() { register_taxonomy( ...
3
votes
3answers
81 views

Display posts the match taxonomy term linked from wp_list_categoies?

This should be simple, but it escapes me. I have a custom post type and a custom taxonomy. The taxonomy is named "asset_type" and the slug is "type" I am using wp_list_categories to provide a ...
0
votes
1answer
24 views

Extra fields on categories that is available via the WP-API?

I want my posts to belong to a taxonomy with a couple of extra fields such as category_icon, category_quick_facts etc. I want this taxonomy (with all of its fields) to be available via the WP-API. How ...
0
votes
0answers
14 views

How to set specific values for a taxonomy via IXR_Client?

I am trying to create posts using IXR_Client. I am already able to do that, but now I am facing a problem were I don't know how to create sub-categories for the posts I am creating. The way I am ...
0
votes
0answers
21 views

Change taxonomy to metabox?

I created a custom taxonomy, but I need the taxonomy values in a metabox within the same post. How can I archive this? I tried several plugins for taxonomy management, but none of them could do what ...
0
votes
0answers
35 views

Can I use multi (sub) levels of relation (AND | OR) on custom query?

I'm tryng to do the equivalent of: $args = array( 'post_type' => 'post', 'tax_query' => array( 'relation' => 'OR', array( 'relation' => 'AND', ...
0
votes
1answer
27 views

Connecting multiple post types? Or linking “News” posts with “Game” posts how?

I am building gaming news and tutorial website. But i don't know how to link multiple post types with one specific post. For example, i created post types called Games News Tutorials Videos Reviews ...
0
votes
0answers
52 views

How to display custom taxonomy

I have created city taxonomy in back end and i have added mumbai,pune,nashik city in city taxonomy like bellow snipe. My problem is that when i click the city for example mumbai i want display the ...
2
votes
1answer
91 views

Get list of terms of current taxonomy archive for another taxonomy

I have a Custom Post Type named 'Real estate' which has (amongst others) two different taxonomies: 'Purpose' (hierarchical; terms used are 'Living', 'Working' and 'Holidays') and 'Location' ...
-1
votes
1answer
76 views

Custom Search only for my Custom Taxonomy Page - data

First of all, my post is related to : Link 1 and Link 2 I made my custom taxonomy page. My Custom Taxonomy Page link is //localhost/myproject/?motion=aamir-khan This page is custom taxonomy ...
0
votes
1answer
28 views

Sort by Custom Post Type (Multiple Loop)

I have changed my set-up slightly to have 2 separate post types "Premium Listing" and "Free Listing" and a taxonomy for Listing_category. Here is an example of my Loop The idea is to display Premium ...
0
votes
2answers
32 views

Variable not working in WP_Query

I have used this technique before and cannot work out why this time it is not working. 'news_category' is a custom taxonomy of my custom post type 'News'. I am getting the taxonomy of the current ...
0
votes
1answer
36 views

Add custom taxonomy as a css class

On a custom post type archive I'm trying to add the custom taxonomy terms slug as a css class to the tag. I've managed to get it to output the page->ID but struggling to get the $term->slug to work. ...
0
votes
0answers
29 views

One taxonomy for multiple post types or not?

I am working on a website where I have a post type for "products". On this same website a user can find 3 information types about these products. Inspiration Manuals Reviews These are also 3 ...
0
votes
1answer
24 views

Querying posts globally based on custom taxonomy with its own taxonomymeta table

I have gone through the process of creating a custom taxonomy + admin panel for a custom post type in my site. These taxonomies store various meta data in a wp_taxonomymeta table and use ...
0
votes
1answer
29 views

Index page of posts tagged with two separate taxonomies

I have a custom post type Book which has three custom taxonomies: Genre Fiction Non-fiction Media Type Book eBook Audiobook Audience Kid Teen Adult My goal is to create index (aka archive) ...
0
votes
1answer
48 views

Displaying Custom Taxonomy without a hyperlink

I would love some help on how I can best display the custom taxonomy of a post as text only (and not as link within an tag). I have a small template file that is called by a few other pages, and the ...
0
votes
3answers
118 views

Hide meta box for everything BUT a certain custom post type

I need to retain tag taxonomy for a single custom post type, but am struggling with it. Is there a way to remove this meta box for everything BUT? remove_meta_box('tagsdiv-post_tag', 'post', ...
0
votes
1answer
65 views

Child Pages and Custom Taxonomies

I have been stressing over this for a while. I have figured out how to call pages in a loop using custom taxonomies. I have also figured out how to call child pages of a parent page in a loop. ...
0
votes
0answers
47 views

Change post category via MySQL

I'm currently building a management program that works separately from Wordpress but interacts directly with the Wordpress MySQL database. I have it working updating, adding and deleting posts and ...
0
votes
0answers
42 views

Taxonomy archive page not displaying multiple results

I'd like to have a filter-widget which givs me an advanced search for my custom post types. I tried several plugins: "Query Multiple Taxonomies", "Search & Filter", "Taxonomy Picker" and the ...
0
votes
1answer
105 views

Custom Taxonomy Not Saving in Front End Post

I am trying to create a front end posting form that will allow users to create a post when schools are closed. I have 4 custom taxonomies closed_schools, study_open, safe_arrival, hour_delay. each has ...
0
votes
1answer
50 views

Archive templates based on taxonomies

I have a custom post type, service-provider, with two taxonomies, area and service. I wanted to make a template based on the taxonomies. function template_taxonomy($template) { if (is_archive()) ...
0
votes
1answer
54 views

Taxonomy archive template that shows posts from more than one taxonomy

I've had a fair amount of experience with WP, but this continues to make issues and could be on the brief for my next website. I'm looking for a "good" way to accomplish this task; the post screen ...
0
votes
1answer
17 views

Custom taxonomy query showing more than 4 posts

I have a custom taxonomy query setup that shows posts from the same post type and share the same taxonomy term. The markup looks as follows: <?php $terms = wp_get_post_terms( ...
0
votes
1answer
25 views

Custom taxonomy - query returns an error

Web page in question: http://www.cambridgesca.org.uk/ExternalDirectory/searchdirectory/ Plug-in used: Search & Filter Frequencies is a custom taxonomy. Code, as follows, inserted at the end of ...
0
votes
1answer
20 views

Taxonomy page shows category in title

I have a custom taxonomy called 'Genres' within that I have various taxonomies: 'Paintings' 'Drawings' etc. I use the code below to create my page titles. When viewing the taxonomy page for ...
0
votes
0answers
33 views

Modify taxonomy-$taxonomy-$term.php to include posts from all blogs in multisite

How should I modify the taxonomy-$taxonomy-$term.php template to include posts from all sites in the network? I've been looking into the query_posts method from the Custom Queries Codex article, and ...
0
votes
1answer
18 views

Show taxonomies from specific CPT

I want to show a simple list of taxonomies associated with my CPT. The taxonomies are "skills". I have the following code: <h4>Skills</h4> <?php $taxonomy = ...
0
votes
2answers
39 views

Get the taxonomy of the post

How do I simply grab the taxonomy of a post using the post id? I have tried using the_terms and such but everything seems to require you know the taxonomy ahead of time.
0
votes
1answer
32 views

Get object for a few selected taxonomies

I have some custom taxonomies that I would like to use as an object in a foreach loop. I know these functions which returns the object for either all taxonomies: global $wp_taxonomies; or the ...
0
votes
2answers
255 views

Get custom taxonomy term url on archive page

This is driving me crazy, so please help me guys with this. I'm trying to add a metatag to custom taxonomy ter archive page header which contains the url of the term archive page of a custom ...
1
vote
3answers
203 views

Menu Multiple Taxonomies

I have a post_type "products" which has both "Category" and "Brand" taxonomies. Each product has exactly 1 Category, and exactly 1 Brand. I would like to display a menu which first lists the ...
0
votes
1answer
169 views

How to completely disable a taxonomy archive on the frontend?

I have registered three custom taxonomies. All three of these custom taxonomies are attached to my custom post type. There is only one taxonomy out of the three registered, that I would like not ...
1
vote
1answer
459 views

display posts with same taxonomy term

I'm trying to display 5 related posts in the loop, those related posts being posts that share the same taxonomy value. e.g. I have a custom taxonomy set up called venues thus each post has a venue ...
0
votes
1answer
123 views

get_term and get_term_by returning null or false eventhough the term exists

I am trying to use the action hook delete_term, delete_$taxonomy, among other hooks that delete a term but they are presenting the same issue. For example: 1234 is an existing term in the favorite ...
0
votes
0answers
35 views

How to use tax_query other than by slug or id or solve custom taxonomy tags conflicts with pre-existing tags?

I just encountered a problem and realized that all tags must be globally unique. Here is what just happened to me: I created a taxonomy called writer and added each author and collaborator to the ...
0
votes
0answers
27 views

Can't fetch custom taxonomies from a plugin file

I set up a custom taxonomy last week and everything seemed to be working correctly, until I realised that from one plugin file I could only fetch some taxonomies, whereas from another plugin file I ...
2
votes
1answer
408 views

wp_insert_term doesn't work with custom post type's taxonomy

Here is the problem I am having: I have a custom post type called "weddingguests" This custom post type "weddingguests" has a custom taxonomy, "friendsof", hierarchic I want to programmatically ...
0
votes
1answer
95 views

Taxonomy.php how to show post only in current taxonomy with wp_query?

Having troubles to get my taxonomy.php working good. I use a taxonomy.php to list all my posts in a specific category but it shows every post I have in all categories. Here is my code: <ul ...
0
votes
1answer
32 views

insert a taxonomy for a custom post type

I have been created a custom post type and create a taxonomy for it, below is the code which i used to create those: //create custom post type of jobs add_action( 'init', 'create_jobs' ); function ...