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

learn more… | top users | synonyms

0
votes
0answers
14 views

How do I display the contents of each custom taxonomy term and segregate them?

I currently have a page which display all the terms and their contents. <?php?> $audio = get_posts( array ( 'paged' => get_query_var('paged'), 'post_type' ...
0
votes
2answers
71 views

How to limit the number of terms (terms acts like categories)

Hello i have created taxonomy in custom post type that act like category. then i have created terms that acts like categories. i have create widget that show all terms from taxonomy. all works ...
0
votes
0answers
46 views

How to dynamically select particular WordPress Category?

I build my simple wordpress magazine and I have multiple categories, like cover, volume 1, volume 2, etc. In the index / homepage, I want to display table of content for each volume (based on ...
0
votes
1answer
50 views

How to get all the terms of a post

Here is my code so far: $terms = wp_get_post_terms($event->ID, 'speakers', array("fields" => "all")); print_r($terms); It displays this: Array ( [0] => stdClass Object ( ...
0
votes
0answers
105 views

New taxonomy - have_posts() returns false

I have created new taxonomy for posts using this example code from codex.wordpress.org (modified for post instead of book from the example) $labels = array( 'name' => _x( ...
0
votes
1answer
255 views

Permalinks for Taxonomy and Custom Post Type

Have the following situation here: Custom post type: 'recipes' Taxonomy for custom post type 'recipes': 'receitas' One of the taxonomies slug: 'receitas-whoopie-pie' The permalink structure MUST be: ...
0
votes
1answer
42 views

Order custom Taxomony alphabetically and reversal after clicking a button?

I made a custom type named foods and a taxonomy named fruits. I want to order the fruits name alphabetically ( A-Z ) on clicking a button and then clicking on it again it will show Z-A order. Can ...
0
votes
0answers
29 views

Wordpress permalink need taxonomy after postname

I got a problem with wordpress permalink. The site below is using directorypress theme, I need to to show the post url in this format post-name/state/city where country->state->city are in parent ...
0
votes
0answers
16 views

Rewrite author_name to color [duplicate]

I'd like to rewrite author_name to color. So example.com/?author_name=blue would be example.com/?color=blue I searched for hours but can't find anything useful. Any ideas?
0
votes
0answers
22 views

Custom category conditional

I have some custom categories and I want to show a image if its a certain category, for example i did this but its not showing: if( is_category( 'bikes' ) ) { echo 'MY IMAGE'; } Could someone tell ...
0
votes
0answers
55 views

How can I set up the URL for a category archive for a custom post type?

I'm working on a site www.site.com that has an additional post type: project. In registering project, I've declared "taxonomies"=>array("category") so that I can categorize the essays. Works fine. ...
0
votes
1answer
43 views

Display only the latest post

There seems to be something wrong with the logic of what I'm doing. I just want to display the latest post in a custom term. But instead I'm displaying every post for that term, even though I am ...
0
votes
0answers
56 views

Custom Post from Custom Query with Multiple Custom Taxonomy Terms with Pagination

I have a page template like having code, (on the link below) http://pastebin.com/mZaRLKp2 Actually it's the problem of getting custom post list having all the multiple custom taxonomy terms with ...
0
votes
0answers
25 views

Frontend Uploader plugin: how to deal with taxonomies?

I am using Frontend Uploader plugin. I want to know how to add taxonomies to an attachment on the form. Here is the registered taxonomy: function create_image_taxonomies() { $labels = array( ...
0
votes
0answers
107 views

Post Filter clearing on pagination $_post

I have a form, in which users can select what taxonomy they want the posts filtered by. It works fine except that it doesn't paginate. When I click on the next page of results, it clears the query. ...
0
votes
0answers
46 views

Redirect page to first custom taxonomy term archive

Is there a way to redirect a page to the archive page of the first term in a custom taxonomy archive? For example I want the page "Videos" to redirect to whatever term is first (Ordered by it's ...
0
votes
0answers
86 views

Create Child Taxonomies Automatically

Actually is not child taxonomies to auto create them without something triggering something, I'm looking for a solution for when a taxonomy is published some other taxonomies of my choice will be ...
0
votes
1answer
21 views

How can i set post_per_page in my taxonamy?

<?php $myquery['tax_query'] = array( 'relation' => 'OR', array( 'taxonomy' => 'brands', 'terms' => array('ALL'), 'field' => 'slug', ...
0
votes
0answers
65 views

Set terms programmatically

I would like to use wp_set_post_terms() or wp_set_object_terms(). I think I read all the codex and all forum post about these functions and I still can't make them work. I've a taxonomy named store ...
0
votes
1answer
492 views

Custom Taxonomy with tax_query

So I've created a custom taxonomy type with a plugin (CMS Press) and now I'm trying to get all of the posts with the taxonomy terms in that taxonomy. My get_posts looks like this: $args = Array( ...
0
votes
1answer
39 views

Display Taxonomy Terms in an option tag with value being the slug

I have a custom taxonomy filled with terms that I wish to display in a fashion such as below. <option value="[SLUG]">[TERM]</option> <option value="[SLUG]">[TERM]</option> ...
0
votes
1answer
269 views

Custom Post Type Set Comments ON by default without show METABOX

I've created a new custom post type for a specific posts. The posts from my new custom post type, have - by default - set the comments to "off". I need to the comments to be "on" by default. In my ...
0
votes
1answer
130 views

Filter unique custom field value based on custom taxonomy category or other custom field

Is there an easy way to obtain a list of uniqye custom fields value from a specified taxonomy value? For example, I have many categories under taxonomy "products". Every product has some custom ...
0
votes
0answers
22 views

How Can I List Categories by Date?

This question isn't specifically about categories, but any taxonomy. I registered a taxonomy called issue. I want to list these issues by year. I'm currently using the function: wp_list_categories( ...
0
votes
2answers
271 views

Remove title attribute from tag cloud widget [duplicate]

I use the built-in tag cloud widget and it's outputting the terms with a title attribute on hover that says "x Topics". How can I remove this title attribute, or better yet, change it to something ...
0
votes
1answer
67 views

How to display only taxonomies of custom post type in a page?

I have created recipe as a custom post and types as a taxonomy. In that taxonomy I have created vegetables and fruits as fields and I have 5 posts in each fields, but I need to display only vegetables ...
0
votes
1answer
72 views

List a custom post type's posts ordered by nested custom taxonomy

Like the title says I have custom post types and custom taxonomy for that type. For the Taxonomy I have terms in 3 levels like this: -> Term 1 --> Term 1a --> Term 1b -> Term 2 --> Term 2a --> Term ...
0
votes
0answers
32 views

Display posts from custom post type organised by taxonomy term

Is there a way that I can list all the posts within a custom post type organised by their custom taxonomy term? For example; I have 9 posts in a custom post type custom_post, separated into 3 terms ...
0
votes
0answers
69 views

Query/Loop multiple taxonomies in taxonomy template

How to Query multiple taxonomies in taxonomy template, ex. taxonomy-schools.php Please help, Ihave spend many hours trying to fix this.. Here's my code: <?php $term =$wp_query->queried_object; ...
0
votes
1answer
368 views

conditional statement for custom taxonomy

Struggling to find out how to achieve this, if it is at all possible. The equivalent of is_category but for a custom taxonomy I've set up. The taxonomy category if which being Taxonomy Name with 2 ...
0
votes
1answer
388 views

is_tax() function not working as expected

I'm facing an issue with the is_tax() function. I'm a class method that fetches a specific custom post types. These custom post types have taxonomy related custom fields (among other custom fields). ...
0
votes
2answers
126 views

Display yesterday's last post's Custom field from Unique terms of one Taxonomies

I have problem in my first theme design, and I think you can help me easily!(I searched my problem several times in Google and WordPress codex but I cant find exactly that I want!!) I want to ...
0
votes
1answer
52 views

Grouped custom taxonomy query

I have created 1 custom post types: image-gallery 1 custom taxonomy: media-category 2 categories (under Media Categories): categoria-uno and categoria-due I need to print the records grouped by ...
0
votes
0answers
31 views

Plugin for taxonomy nested-set descriptors?

I'm trying out the Ultimate Taxonomy Manager plugin, and I would like to run "cascading" queries against taxonomy metadata. For example, I'm defining ad unit IDs that can be overridden on a ...
0
votes
0answers
43 views

Use of taxonomies as product filter

I would like to make a filter for products (all in dropdowns). For example: First dropdown (taxonomy: food) with the children: fruits, vegetables .... Now I select fruits, all pages (I only use ...
0
votes
1answer
43 views

Custom Post Type Template based on Taxonomy

I have a custom post type, Vehicles. Vehicles have a custom taxonomy, new or used. Naturally the vehicle pages use single-vehicles.php but I would like to differentiate between new and used vehicles ...
0
votes
1answer
46 views

Check if taxonomy is attached to at least one post in a post-type

To check if at least one post in post-type products has the led term I usually do this: $query = array('numberposts' => 1, 'post_type' => array('products'), 'television' => 'led'); $products ...
0
votes
2answers
99 views

Exclude 2 in 3 terms of A Taxonomy from all Archives

I have read this post: Include and Exclude Taxonomies From Archives & Feeds Using 'pre_get_posts' And then I have used that function to my theme. My Taxonomy (tinh-trang) had 3 term: ...
0
votes
0answers
38 views

custom post types one Taxonomy - how to build <a href> links

So for a taxonomy that contains sections/groupings{a,b,c,d} now lets say we have two different custom post types that each has one custom post type for each of the taxonomy groupings Now what I ...
0
votes
2answers
429 views

How to display post from current Taxonomy in archive page?

I am using the following code to display a random post from the current category in category archive page (using archive.php). However, when in Tag or Taxonomy archive pages, the post is not correctly ...
0
votes
0answers
38 views

Show list of posts only on category site

I used the following code to create a list of my custom categories and custom post types: <ul> <?php $custom_terms = get_terms('project_category', ...
0
votes
1answer
58 views

Turn wp_tag_cloud into a front-end filter

I have a photo gallery with wp_tag_cloud in the sidebar to display hierarchical taxonomies that categorize photos. The taxonomy name is person. <div id="filter"> <?php wp_tag_cloud( array( ...
0
votes
1answer
27 views

Taxonomy templates in a multilanguage site

Let's say I have a multilanguage (English and Spanish) site with a custom post type called Books, with two custom taxonomies, Authors and Publishers. The template files used to render the taxonomy ...
0
votes
0answers
53 views

Custom taxonomy template

I make two custom post type called (movies and serials) and one custom taxonomy called (directors). When I go to /directors/namedirector I don't see movie. I need help to make query or template for ...
0
votes
1answer
141 views

Why get_page_template() doesn't show taxonomy template file name?

I made a custom taxonomy called - work-category and a template file for it called - taxonomy-work-category.php. That part work just fine. For a purpose I did put get_page_template() in that ...
0
votes
1answer
94 views

Advanced AND tax_query in sidebar with 2 taxonomies

I have two taxonomy : brand and product. In single sidebar I am displaying the brand and product of the post in the sidebar but I would like to display all the other product of the current taxonomy ...
0
votes
0answers
32 views

Insert custom taxonomy into post programmaticlly

i am trying to insert post from Android app via web services. i am using "wp_set_object_terms" for this purpose. when i perform it on my localhost it insert the post and taxonomy ids and tick the ...
0
votes
0answers
77 views

Creating taxonomy.php

I trying to create my taxonomy.php from this code: <?php $posts_per_row = 4; $posts_per_page = -1; $pageURL = 'http'; $post_type = 'radio'; if ($_SERVER["HTTPS"] == "on") ...
0
votes
1answer
36 views

How do I add tags/taxonomy to images + a query field on page to query 'albums' (images with same tag/taxonomy)

I've got lots and lots of photos on my site and I want to seperate them into albums. Every album is a client album (photoshoot). Though.. I want all my clients to query their album on my site. ...
0
votes
0answers
18 views

Maintain custom post types and taxonomies in all themes [duplicate]

When I change the theme in dashboard, activated plugins that use custom post types, stay in the menu. But my own custom post types that I created myself disappear. Logically, It is because I create ...