A taxonomy is a generic "category" used to organize posts and custom post types
0
votes
1answer
9 views
Automatically Assign Parent Terms When A Child Term is Selected
I have deep hierarchical taxonomy and I want to have all parent term assigned when I select a child term. I need it for category structure on a online listing/classified site.
CPT name: product
...
0
votes
1answer
70 views
Taxonomy as checkboxes
So I'm trying to get Wordpress to display the categories as a series of select boxes in a custom meta box and am using some examples from this tutorial, but when I go to save the selection it ...
0
votes
0answers
20 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
3answers
596 views
Custom hierarchal taxonomy loses interface hierarchy when selecting parent & children
I have a custom hierarchical taxonomy that is called 'Categories', but serves a different area of the site than the default "Categories" taxonomy. The problem I'm having is with selecting children ...
0
votes
0answers
23 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
2answers
24 views
Metadata for a taxonomy - is there any WordPress way of doing this?
If I have a CPT "movies" I know I can have various taxonomies eg "Director", but how can I store further information such as "director's nationality" for any one particular director ... or is this ...
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
10 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
2answers
179 views
Tax Query trouble
I can't seem to figure this out.
The following query works:
$xxxx = new WP_Query(array(
'listset' => 'homepage',
'meta_query' => array(
array (
'key' => 'show_home',
...
0
votes
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 ...
0
votes
2answers
279 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 ...
0
votes
2answers
20 views
Override Taxonomy Template
I'm trying to list all the products tied to a specific taxonomy. For some reason the template won't work when trying to access "http://www.myexample.com/product_categories/funiture/", I tried ...
1
vote
2answers
129 views
How to sort list of custom posts to get view like a tree of posts under categories and their children's categories?
I'm new here and my english isn't perfect so I'm sorry for this :) I'm here because I'm workin on site with post list sorted by category and I have problem with sort out my posts in categories and ...
0
votes
1answer
39 views
input radio 'checked' saves, but select option 'selected' doesn't
So I followed a tutorial on how to create a meta box w/ the taxonomy terms shown in radio buttons. (Tutorial here for others if interested: ...
0
votes
1answer
308 views
How to use wp_category_checklist()?
I've recently discovered that we can insert a dropdown list of categories like this:
<?php
define( 'WP_USE_THEMES', false );
require( './wp-load.php' );
?>
<?php ...
1
vote
1answer
134 views
Count posts for each taxonomy term for each month
Cannot figured it out... I need to count how many posts there are for each taxonomy term form each month.
0
votes
0answers
15 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 ...
0
votes
0answers
13 views
Delete Term via edit-tags.php
I might get rep'ed down on this - but is there suppose to be a "Delete" link on the edit-tags.php page? Note: not the WP-List-Table, but the actual page where you specifically view the terms ...
0
votes
1answer
23 views
How to set hierarchical terms to a post using wp_set_object_terms
I have a hierarchical custom taxonomy called "locations". The parent categories are country names, the child categories are the territories under the country.
How can i attach these terms to a post ...
0
votes
2answers
46 views
Get current custom user taxonomy
I’m using the plugin User Groups which lets me group users with categories. The plugin is working essentially the same as using the manual method (custom user taxonomies) described by Justin Tadlock ...
0
votes
1answer
23 views
create taxonomy
I am new to word press, I want to display results on a page which belong to some group from database(I have group column). I think this can be done by taxonomy so I have taxonomy table but I don't ...
0
votes
1answer
18 views
How to get next previous category in same taxonomy?
Like WP get_adjacent_post function gives the next and previous post data based on the parameters i want to get the next/previous category data is there any WP built in function which does the right ...
11
votes
7answers
3k views
How to show a hierarchical terms list?
I have a hierarchical taxonomy called 'geographical locations'. It contains continents on a first level, and then the countries for each one. Example :
Europe
- Ireland
- Spain
- Sweden
Asia
- Laos
- ...
0
votes
0answers
19 views
Curious, possible to make admin create/edit post page to look like taxonomy page?
This idea just came to me, where I thought it would be great to have something like this for CPTs that doesn't need much content/fields to fill out.
Basically a Post page where your able to add a ...
0
votes
1answer
16 views
Add category description to list of category with taxonomy image
I'm using the Taxonomy Images plugin.
Would like to list categories with their thumbnails AND descriptions. Code below give a list of categories (titles are linked to category archive) and thumbnails. ...
0
votes
1answer
346 views
Query Custom Post Type by Taxonomy
I've created a query working fine pulling posts from a specific taxonomy—but before I had only 7 taxonomies that were permanent, now I have sub taxonomies under that main taxonomy and they will be ...
1
vote
1answer
21 views
wp_insert_post not updating custom taxonomy selected if logged in as a subscriber
Here is my Code, it works fine When i try to post data from front end if Logged in as admin, but if i logged in as a subscriber code works fine but it is not inserting the taxonomy term i select, here ...
0
votes
2answers
32 views
Add text to the end of each list item in wp_list_categories
I haven't been able to find what I'm looking for and not sure how to approach it.
I'm using wp_list_categories to obviously list terms of a taxonomy. I'd like to add some text to the end of each ...
0
votes
0answers
21 views
Add a prefix term in a custom taxonomy slug
I am looking to rename the slug of a custom taxonomy when inserting a new term, adding to the default slug a prefix.
For example, if the term name is "something" I want the slug is "prefix-something" ...
0
votes
1answer
26 views
Looping taxonomy in taxonomy?
So I have a CPT of references (like a dictionary kind of format for music).
In it there are two taxonomies: medium_reference and reference_letter.
The reference_letter lists letters A-Z, while ...
0
votes
1answer
21 views
Custom taxonomy rewrite using tax name instead of rewrite slug
I Created a custom taxonomy for my projects custom post type.
function projects_taxonomy() {
$labels = array(
'name' => __('projects Categories'),
'singular_name' => ...
0
votes
1answer
124 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', '', ' / ...
1
vote
1answer
126 views
Any way to assign Post Categories and Tags to Links?
I would like to assign post categories and post tags to the links in my 'Links' section, and (ideally) remove the link categories feature since it would be redundant.
Anyone know how to do this?
0
votes
1answer
44 views
Author template - separate custom post type by custom taxonomy term for $curauth
Basically I have a post type called photograph, I then have a Taxonomy group called "Subject" and several tax terms i.e. Abstract, freeze frame etc (Approx 18 in total) under that Taxonomy group.
I ...
0
votes
1answer
16 views
Problem importing categories and sub-categories
I have an array with the categories and sub-categories I want to import to the "campsite-district-county" taxonomy.
My sub-categories are not being inserted with the correct parent. They're being ...
0
votes
2answers
291 views
child_of not working in wp_dropdown_categories
I have wp_dropdown_categories working without setting child_of. Once I set child_of, all categories disappear. Here's my code, what should I do to enable child_of?
function dropdown(){
...
0
votes
1answer
122 views
Get terms in hierarchical taxonomy which are associated with page and are children of a parent term
I have a hierarchical custom taxonomy ("photos"), with 3 parent terms ("color", "location", "year"). Each parent term has several children terms. I have associated the "photos" taxonomy with pages and ...
0
votes
0answers
16 views
Auto create child taxonomies when Parent taxonomy is created
As the title says...How can i have child taxonomies to be automatically created when a parent taxonomy is manually created, Like this
Parent Taxonomy : USA ------------------> Manually created
...
0
votes
1answer
141 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 ...
0
votes
1answer
218 views
wp_list_categories, Add class to all list items with children
I'm using wp_list_categories(); to show a list of all the terms within a custom taxonomy but I need to style list items that have children differently to those that don't.
Is there a way, PHP or ...
0
votes
2answers
59 views
Get post by term from custom taxonomy in another blog on the network?
I'm having trouble getting post by term in a custom taxonomy I have set up. The catch is this is multisite and I'm getting this data from another blog on the network where the taxonomy is registered. ...
0
votes
0answers
31 views
Get posts under a category with SQL
How can I retrieve posts under a category with plain SQL with out using WordPress native api's like get_pages?
My Wordpress table wp_terms contains a term named Restaurants.
I want to list the post ...
0
votes
1answer
224 views
getting the parent from the wp_term_taxonomy
Is there a built in wordpress function that let's me look up the
"parent" field of the "wp_term_taxonomy" table if I pass the TT_ID to
it?
something like
get_value ( $wp_table_name, $id_fieldname, ...
1
vote
1answer
34 views
get_the_tags() not iterating through for/while loop, but will with foreach
I'm having a very peculiar issue with Wordpress right now that I can't understand, and hopefully someone here will have experience with it to help solve it.
I'm trying to iterate through the array ...
2
votes
2answers
2k views
Querying Multiple Custom Taxonomy Terms
I created a new taxonomy called 'country' and have two terms items inside it: 'USA' and 'Canada'. How do I go about querying this info? I have a filter page with two checkboxes:
<input ...
3
votes
1answer
109 views
Integrate post tags in Post Edit page with qTranslate
Summary
In the tags widget in the Post Edit page, I need to know a way to filter through:
the tags suggestions
the tag terms update when saving or updating the post
At least that is what I think ...
1
vote
1answer
44 views
Showing custom taxonomy column in taxonomy category listings immediately after create category
I add my custom taxonomy column with this code:
function manage_my_category_columns($columns)
{
if ( !isset($_GET['taxonomy']) || $_GET['taxonomy'] != 'products' )
return $columns;
...
0
votes
1answer
21 views
Get Link to Feed On Term or Taxonomy
Instead of building the link myself, I was wondering if wordpress has a function which generates a link to a given feed, be it a taxonomy, term, or post type. Perhaps it might even generate the little ...
0
votes
1answer
116 views
How to Order a list of taxonomies? orderby?
I am using this code to fetch a list of child taxonomies. I want the order displayed to be alphabetical, but it is not! Any help in figuring out how to do it? I guess ordering it before returning it ...
1
vote
1answer
30 views
Include custom post type in “all posts”
(Working of off an existing team that the client already purchase.)
I have a WordPress install with a couple of custom post types:
portfolio
testimonials
I've set the taxonomy to hierarchical' ...
