Questions tagged [taxonomy]

The classification, or categorization, of things

1570 questions
148
votes
9 answers

How to get the current taxonomy term ID (not the slug) in WordPress?

I've created a taxonomy.php page in my WordPress theme folder. I would like to get the current term id for a function. How can I get this? get_query_var('taxonomy') only returns the term slug, I want the ID
InvalidSyntax
  • 9,131
  • 20
  • 80
  • 127
27
votes
7 answers

How do I remove a taxonomy from Wordpress?

I'm creating different custom post types and taxonomies and I want to remove the 'Post Tags' taxonomy from the default 'Posts' post type. How do I go about doing this? Thanks.
Evan
  • 271
  • 1
  • 3
  • 4
22
votes
2 answers

Many-to-many relationship with NoSQL database

I want to implement a taxonomy structure (geo terms) for my node.js application with NoSQL database. I had a similar taxonomy structure with MySQL but it's time to move forward and learn something new so I decided to try a different approach and use…
20
votes
3 answers

How can I theme the taxonomy/term/x page?

Although it was easy to find some info online about how to theme other stuff (e.g. search results), it is impossible to find a straightforward article about how to theme the output of a taxonomy/term/247 page? How can I do it?
Dan Albey
  • 559
  • 1
  • 8
  • 14
18
votes
11 answers

What's a learning curve and why is steep not hard?

What exactly is a learning curve? And why is it wrong to use the term "steep learning curve" for something which has high entry barriers and takes quite some time to get into? As to the why-ness of this question: The terms are used often and…
markus
  • 40,136
  • 23
  • 97
  • 142
17
votes
5 answers

Get Woocommerce Category Thumbnails

I have a custom template for a woocommerce category page to only display the categories. I have got the system to get a list of the child categories (by using get_term_children($id, 'product_cat') and get_term_by(...)), but it only returns objects…
topherg
  • 4,203
  • 4
  • 37
  • 72
16
votes
8 answers

How to find "related items" in PHP

we often see 'related items'. For instance in blogs we have related posts, in books we have related books, etc. My question is how do we compile those relevency? If it's just tag, I often see related items that does not have the same tag. For…
Patrick
  • 4,815
  • 11
  • 52
  • 55
15
votes
5 answers

What's textmate's 'Go to File' fuzzy search algorithm?

Textmate's 'go to file' fuzzy search is really awesome. Wincent's Command-T plugin for vim does something similar and it rocks too. Can someone explain how these work? Is there a general term for the method they use? Edit: I little more detail…
Dane O'Connor
  • 75,180
  • 37
  • 119
  • 173
14
votes
5 answers

Get all posts from custom taxonomy in Wordpress

Is there a way to get all the posts from a taxonomy in Wordpress ? In taxonomy.php, I have this code that gets the posts from the term related to the current term. $current_query = $wp_query->query_vars; query_posts( array(…
Andrei
  • 1,606
  • 4
  • 19
  • 31
13
votes
9 answers

Wordpress : How Do I get taxonomy name in taxonomy.php?

I am able to display the term of the taxonomy in the taxonomy page, but how do I get the taxonomy , or display the taxonomy on the page. for example, when I have a taxonomy called "fruit" and I click on a fruit term called "lemons", How do I display…
James
  • 151
  • 1
  • 2
  • 6
13
votes
1 answer

Any good sources for Tridion Taxonomy query examples

I have a scenario where I have several thousand Component Presentations published that are classified with a specific category/keyword, but the components also have Custom Metadata fields pertaining to define the top n. that will be displayed. …
12
votes
2 answers

Sort grouped nodes by taxonomy weight in views

I have one vocabulary with 4 taxonomy terms - Term A - Term B - Term C - Term D and there are some nodes which I grouped in views by taxonomy term, so the result looks like this: - Term 1 - Node 1 - Node 2 - Term B - Node 3 - Node 4 ...…
5ulo
  • 749
  • 1
  • 8
  • 21
12
votes
2 answers

Ontology: OWL - Creating connections between classes

I ve got an Ontology written in OWL with Protege. But I don't find a solution for creating relations between Classes. Of course, there is a "subclass" relation, but I want to define my own relations. So I have a class hierarchy (which consists out…
Natan
  • 137
  • 1
  • 7
11
votes
5 answers

Creating Taxonomy Table in MySQL

I am creating a botanical database where the plants will be organized by their taxonomy: Life Domain Kingdom Phylum Class Order Family Genus Species I was considering using the example put forth by the article Managing Hierarchical Data in MySQL,…
DrakeNET
  • 183
  • 1
  • 2
  • 8
10
votes
1 answer

How to get around taxonomy paradox?

I am using the "taxonomy display" module. I use to so that I can sort my taxonomy terms by title, instead of by ID, as it does by default. However, I also created a taxonomy template called: taxonomy-term--product_literature_category.tpl.php If I…
rockstardev
  • 13,479
  • 39
  • 164
  • 296
1
2 3
99 100