The classification, or categorization, of things
Questions tagged [taxonomy]
1570 questions
0
votes
3 answers
How can i create hierarchical url in asp.net?
I want to use hierarchical url for my application.How can i create?
For example my database hierarchy as follow,
My product table
|
|--> Electronics
|
|--> Television
|
…

mantissa
- 147
- 3
- 14
0
votes
1 answer
Show all in foreach except
Is there a way I exclude one teacher ("Robert") from the list in this foreach loop and put his entry separately at the top?
$teachers = get_terms('teacher');
foreach($teachers as $teacher) {
$link =…

user1444027
- 4,983
- 7
- 29
- 39
0
votes
0 answers
how to display taxonomies in wordpress?
I have created some Taxonomies for posts. I use the following code to display. but it doesn't display anything. What is wrong with this code?
$term_list = wp_get_post_terms($post->ID, 'link', array("fields" => "all"));
$link = $term_list[0]->name…

Roni
- 70
- 1
- 8
0
votes
1 answer
writing owl file
I have some hierarchy and I need to write them in owl syntax. All objects
are classes no individuals here.
The relation between classes in each hierarchy is the same. For example "relates" is the relation in one hierarchy between all classes.
How…

Persian
- 45
- 6
0
votes
1 answer
How do I use WP_Query for a custom post type's taxonomy using taxonomy ID?
Here is the dilemma I have, my theme options passes the custom taxonomy variable as an ID number, not the slug name. So instead of passing "news" it passses "4".
I have this hard code that works:
$wp_query = new WP_Query(array('slidecat' =>…

BRAINBUZZ media
- 494
- 3
- 9
- 25
0
votes
2 answers
Getting the Root Term ID of a Wordpress Taxonomy Page
I'm on the archive.php page and I want to find the term ID for the root parent of a hierarchical taxonomy. That way I could print out everything related to that parent term.

Talon
- 4,937
- 10
- 43
- 57
0
votes
1 answer
Previous and Next Post in Same Taxonomy in wordpress
I have created a custom post type called staff and have a custom taxonomy called staff-categories which has terms like Broker, Admin etc etc .
I have created the single page single-staff.php. Im stuck in the navigation part where I need the…

rahul251
- 68
- 1
- 2
- 13
0
votes
3 answers
Allow duplicate taxonomy slugs wordpress
I'm trying to set up a hierarchical taxonomy within my theme which also uses a hierarchical slug rewrite.
I have car brands as the custom taxonomy. This would list categories like Honda, Toyota etc…
Then under each brand it would be broken out by…

user1609391
- 445
- 1
- 9
- 24
0
votes
1 answer
Drupal commerce product catalog
I want To create a product cataloge page which has
Two section on one side there will be all products
And on the other side there will be filters to select
The products which has the specific taxonomy term attached to it.
Is there any way i can…

user1474358
- 1
- 1
0
votes
1 answer
Retrieve Custom Post Type taxonomy in WordPress
I have a set of fields in my Custom Post Type 'games' taxonomies called 'gamename' - I am trying to retrieve this value using query_posts like so....
$args = array(
'post_status'=>'publish',
'post_type'=>'games',
'gamename' => 'Space…

fightstarr20
- 11,682
- 40
- 154
- 278
0
votes
1 answer
How to display Taxonomy Imagefield on Menus via taxonomy menus
Im making a website that needs a kind of graphical menu on the main site of my page, where it must be all the categories of the site with an Imagen (just the image and the category name).
Obviously im using Taxonomy for do this.
I already added all…

EgEm
- 13
- 3
0
votes
1 answer
How can I output the count of a specific taxonomy?
I am trying to output the count of product categories that have been created for the custom post type product_cat.
When I use:
publish;
?>
it outputs "0" although there have…

Leon Francis Shelhamer
- 355
- 3
- 14
0
votes
5 answers
add element in array
I have this code :
if($pf_categorynotin){
$args['tax_query'] = array(
array(
'taxonomy' => 'portfolio_category',
'field' => 'slug',
'terms' => $pf_categorynotin,
'operator' => 'NOT IN'
…

agis
- 1,831
- 10
- 33
- 68
0
votes
2 answers
Get posts all posts by Tag / URL Wordpress
I'm looking to create a tag.php page, which displays all tags when the user clicks on the tag from a tag cloud. This is what I've got so far, but this seems to display all of my posts.
Tag:';
$tag =…

Max Chandler
- 503
- 1
- 6
- 21
0
votes
1 answer
Exclude post type from custom taxonomy template
I have setup a custom taxonomy called "video_categories" and have set it to two different custom post types - "videos" and "locations".
I am using the template "taxonomy-video_categories.php" to display the posts that have related taxonomys but I…

Liam O'Toole
- 29
- 2
- 6