A taxonomy is a generic "category" used to organize posts and custom post types
0
votes
1answer
98 views
Unable to get the Parent Custom Taxonomy Terms
I am unable to get the Parent Taxonomy Terms here is the code i am writing
$myterms = get_terms( 'iqvis_event_category', array( 'parent' => 0 ) );
echo '<pre>';
print_r($myterms);
echo ...
1
vote
0answers
119 views
Multi-select field for Taxonomy can't save the value
I'm trying to create a multi select field for Taxonomy pages,
and the problem is in saving all the selected values, for example if I choose couple of elements in the select field and save it, it will ...
0
votes
2answers
152 views
archive page sidebar not working
i created a taxonomy page from archive.php , working based on thematic frame work.
i tried a lot to make the sidebar working but it show nothing and even using firebug its not exist !
<?php
/**
* ...
0
votes
0answers
31 views
Showing custom post type taxonomy with post? [closed]
How do i display certain taxonomy post on my post type page.
For example. I have a post type called "pretty little liars" and a post type called "photos"
now with my photos post type i have a ...
1
vote
1answer
430 views
Let users create a new custom taxonomy entry from frontend (without creating a post)
I have created a custom taxonomy called "Club" (a group of people). This enables me to group posts from contributors (like tags). I use the plugin "Quick Post Widget" to let enter their posts form ...
1
vote
0answers
188 views
Exclude posts with taxonomy term from appearing on home page query
I am really confused about this one, I am usually pretty good at working out basic queries but I can't seem to work this one out.
Please see below my index.php query. Now it is not your basic query ...
-2
votes
1answer
137 views
Get all active posts that are tied to a custom taxonomy for a custom post type
I need to display all the categories I created for a custom post type then inside of each category I need to loop all the posts that are tied to that category.
I tried constructing my WP_Query a ...
0
votes
0answers
19 views
get_terms depth [duplicate]
Possible Duplicate:
Get second level terms of custom taxonomy
I have a taxonomy 'locations' that has 3-level hierarchy. What I am trying to do is to get only the second level of terms ...
0
votes
1answer
61 views
Copying over taxonomy structure from one CPT to another
I have a CPT called adverts and it has 2 taxonomies - category and location. The problem is that there are about 100 entries in location taxonomy and I need to copy the same structure to another CPT - ...
1
vote
0answers
34 views
new site admin not able to browse categories in wordpress multisite
I am working on wordpress multisite. The site i am working on was coded by someone else and made lots of changes in admin. He also made changes in the capabilities and roles. I created an user and a ...
2
votes
1answer
168 views
How to update taxonomy custom field with wp_update_term()?
I'm using Clipper, a coupon theme developed by AppThemes.com, and I'm trying to programmatically import coupons.
The problem I'm having is each coupon needs to have a "store" added when it's ...
0
votes
1answer
45 views
How can I create gallery of products and submit data for each product?
I have a client that wants an eCommerce contact to order website. The client wants to submit products on the website, including the price, name, and information for the product. Along with that, the ...
1
vote
3answers
1k views
How to display non-hierarchical taxonomy as terms with checkboxes?
I'd like to have a non-hierarchical custom taxonomy displayed in the add/edit posts admin screen for a custom post type. Obviously, when the custom taxonomy is non-hierarchical, the meta box that's ...
1
vote
1answer
973 views
How do I get the slug of a custom taxonomy category of a post?
In my template file, I loop through posts that are categorized either web, print, or marketing in a custom taxonomy portfolio.
How do I echo the slug of each posts category?
0
votes
1answer
26 views
wordpress taxonomy in regular posts
I have a custom post type and taxonomy so the user can post in a specific areas in the theme. User (admin) can add categories easily. But the categories that has been added through my taxonomy don't ...
2
votes
1answer
84 views
Remove custom posts that match taxonomy value
I have a custom post type 'listings' and within that a taxonomy called 'status' where the posts are either 'standard' or 'premium'.
What SQL query (or other method), could I use to delete all custom ...
4
votes
2answers
1k views
get_terms by custom post type
I have two custom post types 'country' and 'city' and a shared taxonomy 'flag'.
If I use:
<?php $flags = get_terms('flag', 'orderby=name&hide_empty=0');
I get a list of all terms in the ...
1
vote
1answer
205 views
Why does querying on post_tags (which has been applied to custom post types) only return posts?
So I've created a little jquery cycle based feature rotator that pulls from the post_tags. I added the post tags to my other custom post types like this:
register_taxonomy_for_object_type('post_tag', ...
0
votes
1answer
383 views
How can I create an automatic drop down menu with my tags?
I have another post type which isn't the default one.
I have four taxonomies attached to that post type.
And I have many tags attached to these taxonomies.
I would like to create a drop down menu ...
0
votes
1answer
247 views
Show only, when taxonomy has posts?
I'd like to query posts by taxonomy like this:
<?php
global $post;
$terms = get_the_terms( $post->ID , 'movies', 'string');
$do_not_duplicate[] = $post->ID;
if(!empty($terms)){
foreach ...
0
votes
2answers
298 views
Custom Taxonomy in Permalink of Post
It is possible to use this as a permalink for a post:
/%category%/%postname%/
But lets say I've created a taxonomy called "artist". I'd like to use this for my posts:
/%artist%/%postname%/
I ...
0
votes
2answers
133 views
Echo used hierarchical taxonomies parent name
I want to echo my hierarchical taxonomies parents which i used in my posts.
I've see answers about that, but no one didn't help me.
Now i using <?php the_terms( $post->ID, 'mytaxname', '', ' / ...
3
votes
3answers
858 views
Remove the category/taxonomy description field?
How can I remove the category/taxonomy description field? The one which shows up on the edit category/taxonomy page.
0
votes
1answer
235 views
Show multiple tax_query from 2 or more post_type in a single code
i've been trying with no success to show 2 custom taxonomies from 2 post_type, here's my code:
<?php
/**
* Display a list of the most recent news in 'Avisos'
...
1
vote
1answer
57 views
How to obtain the link/URL to the feed of a custom taxonomy?
What I need to accomplish is to provide a feed link for every item in a custom taxonomy. The function get_category_feed_link only works for categories, and I don't see that tags support this either.
...
1
vote
1answer
36 views
Is using taxonomies the way to go here or would custom post types be better?
I to create a site that will let subscribers select items from a list, say of books or DVDs - essentially building a collection that they could then add additional info, e.g. price paid, where ...
0
votes
1answer
199 views
How can I query all post with currrent taxonomy term?
I created the taxonomy 'machine types', and added several terms to it, like 'cranes' for example.
The url to that term now looks like this: domain.com/machine-types/cranes
How can I make this url ...
0
votes
1answer
41 views
Custom Query for Taxonomy
What is the correct wpdb custom query for this:
taxonomy=pa_main-genre&post_type=product&orderby=name&order=asc
Basically i am trying to do is,list all the terms for pa_main-genre. ...
2
votes
1answer
185 views
What hooks/filters are there to alter selected terms on post save?
Very simple, where would I hook/filter to alter the users selection of terms when they save a post (Update or Add)?
I need to hook in all instances; such as when saving a post via AJAX, saving when ...
0
votes
1answer
69 views
Show min and max taxonomy values
I'm trying to get the min and max values from a taxonomy, but my code is returning all taxonomies:
function get_years ($taxonomies, $args){
$hlterms = get_terms($taxonomies, $args);
foreach($hlterms ...
0
votes
1answer
43 views
Associate all Custom Post Types with Taxonomy
I have a custom post type imagery. I have a taxonomy publications. I need all present and future imagery post types have the taxonomy publications. Here's a simplified version of code in ...
0
votes
1answer
77 views
list taxonomy based on taxonomy
Please, someone can help?! I'm fighting with this for weeks and nothing....
I'm quite new in wordpress and php...
There is a way to list taxonomy terms based on another taxonomy?
OR
If is possible to ...
0
votes
3answers
117 views
How to define a term for custom taxonomy
I have a custom post type called q-questions, and it has a custom taxonomy that called q-categories.
I insert post via wp_insert_post and I want to define some terms for the taxonomy
My code is:
...
0
votes
1answer
110 views
Passing values by form to create a query
I have this structure:
taxonomy
- term1
-- child term1
-- child term2
-term2
-- child term1
-- child term2
I have two select boxes. First one shows the parent terms (term1 ...
0
votes
1answer
159 views
Taxonomy order exception for specific term
I want to make an exception for my custom taxonomy order. Sometimes you need to put "Other" option as last option but when calling taxonomies with "orderby=name", sadly "Other" term is not listing as ...
3
votes
1answer
152 views
List Hierarchical Term List with Count with Related Term
What I have are custom posts (of a custom post type, wps_business) that have two taxonomies (wps_location & wps_type), and I would like to list all the terms from type of a specific location.
For ...
0
votes
1answer
46 views
Trying to display terms from custom taxonomy within function
I have a function that is giving me this error - Catchable fatal error: Object of class stdClass could not be converted to string in.... blah blah
Below is some of the code from the function. It is ...
3
votes
1answer
86 views
Is there any difference between post in child term and child & parent terms?
This may be really obvious, but I can't find other documentation or questions about it.
Scenario
I have a directory of Businesses (custom post types). Each Business has a "Type" (custom taxonomy). ...
0
votes
3answers
154 views
Sharing a custom taxonomy - No posts?
I've been writing up some code which enables two post types to share a custom taxonomy. From the admin side, it works fantastically - but for some reason, when I look at the taxonomy archive itself on ...
0
votes
2answers
475 views
category filter doesn't work in WPML
I translate the categories to another language, but in the main page, the two language categories are all displayed. How can I filter another language?
My WPML version is 2.4.1.
I found all the ...
1
vote
1answer
181 views
Displaying terms based on loop posts?
I have a shortcode that shows a loop for a custom post type:
while ( $loop->have_posts() ) : $loop->the_post();
// do something
endwhile;
Some of the posts are in categories ...
1
vote
1answer
271 views
meta_key & meta_value not working with get_pages and custom taxonomy
I'm trying to use custom taxonomy with pages. Basically a page has a "relevance" taxonomy, depicting who the page is relevant for. The pages are created in a hierarchy based on the departmental ...
0
votes
1answer
190 views
echo term name outside the loop, using term slug
I have a strange question...
I have my term as a variable...
$mailer = 'may-2012-newsletter';
And I'm trying to echo on my page the Name of my term, using the variable above. But this is not in a ...
0
votes
2answers
170 views
I want to remove the links from the term list returned by get_the_term_list
I want to keep this category title on my pages, but I don't want it to be a link.
<?php echo get_the_term_list( get_the_ID(), 'portfolio_cats', ' ', ' , ', ' '); ?>
Can anyone help?
Thanks
0
votes
1answer
195 views
How to get the term description in a taxonomy term archive query?
I'm creating a template for a custom taxonomy for my theme.
At the beginning of the page, before the loop that lists all the posts associated to a term of that taxonomy, I want to output the ...
0
votes
1answer
491 views
Avoid WP_Query's duplicate posts with taxonomies
Given a blog featuring several categories (such as "Sport", "Nature", etc), I've then proceded to create a custom taxonomy, which allows me to show articles in certain areas of my blog with terms such ...
0
votes
1answer
149 views
Why does my taxonomy code display the first alphabetical term?
What i am trying to do is echo the last hierarchial child term for the taxonomy. My taxonomy is propertytype.
My hierarchial structure is:
Real Estate (Parent)
Commercial (Child)
Offices (Child of ...
1
vote
2answers
581 views
How to filter out Categories for specific post types on Wordpress Admin?
How can i programatically change the Category selection menu on wp-admin? is there a hook or filter to edit the Category List?
My objective is to filter out specific categories for specific ...
0
votes
1answer
227 views
Implode Taxonomy to hide parents?
The following code will display the child taxonomy term of the parent only.
$terms = get_the_terms($wp_query->post->ID, 'propertytype');
$props = array();
foreach ($terms as $term) {
if ...
0
votes
2answers
287 views
Remove Parents From Permalink of Hierarchical Taxonomy
I have a custom hierarchical taxonomy called "places" set up with categories like so: Services > Financial Services > Financial Advisors.
The permalink for this category listing page is currently ...
