The classification, or categorization, of things
Questions tagged [taxonomy]
1570 questions
10
votes
4 answers
Wordpress get taxonomy name with slug
How can I get a taxonomy id or name with only the taxonomy slug ?
I guess I'm looking for the equivalent of get_term_by() but for taxonomies.
Edit : I must specify that I'm trying to get the tax ID of a WooCommerce product attribute.
Thanks

Sebastien
- 2,607
- 9
- 30
- 40
10
votes
2 answers
Confirming Taxonomy Caching is enabled with SDL Tridion 2009 Content Delivery
Does anyone have any recommendation on a simple but effective method of confirming that Taxonomy Caching is functional. I'm working on a system where the cd_broker_config (Tridion 2009) had the taxonomy caching commented out.
We've now uncommented…

Dylan .. Mark Saunders
- 1,094
- 10
- 24
8
votes
1 answer
Re-use default categories/tags taxonomies for custom post type?
In my wordpress theme's functions.php, I've created a custom post type called foobar.
Is it possible to re-use the default categories and tags for foobar posts? Or do I have to create two taxonomies:
one for categories
the other for tags
to…

CaseTA
- 153
- 2
- 7
8
votes
4 answers
In C++, is a struct also a class?
Possible Duplicate:
C/C++ Struct vs Class
I know the technical differences between a struct and a class; and of course that question has been asked before.
Object-oriented programming relates objects and classes. In C++ taxonomy, is a struct also…

user2023370
- 10,488
- 6
- 50
- 83
8
votes
3 answers
How to get taxonomic specific ids for kingdom, phylum, class, order, family, genus and species from taxid?
I have a list of taxids that looks like this:
1204725
2162
1300163
420247
I am looking to get a file with taxonomic ids in order from the taxids above:
kingdom_id phylum_id class_id order_id family_id genus_id …

aLbAc
- 337
- 3
- 18
8
votes
3 answers
Wordpress - Custom taxonomy page of custom post type listing by terms
I have a taxonomy-taxonomy.php page that needs to look like so:
CUSTOM POST TYPE TITLE (RESOURCES)
Custom Taxonomy 1 (Resource Types)
Resource Type Term 1 (White Papers)
White Paper post 1
White Paper post 2
White Paper post 3
Resource Type Term 2…

manon1165
- 81
- 1
- 2
8
votes
1 answer
Displaying Tags on taxonomy page
I currently have the option in my CMS, to add tags to my custom post type single page.
Now, I am wanting to display this tag as a 'featured' item.
So, In my taxonomy-'filename', I use the following code which gathers the tags and displays them in…
user2209033
8
votes
1 answer
Wordpress post tags in menu
I can`t add post tags to wordpress menu. I try create taxonomy, with replace "post_tag", but it not showing on Appearance->Menus. When i create custom taxonomy, it showing on Menu section. How to add standart wordpress tags to menu? Any ideas?

Роман Прокопишин
- 83
- 1
- 1
- 3
8
votes
2 answers
Display current post custom taxonomy in WordPress
I've created custom taxonomies on WordPress and I want to display the current post taxonomies on the post in a list.
I'm using the following code to display a custom taxonomy named "Job Discipline":
-
…

Bhanu Chawla
- 1,138
- 2
- 13
- 26
7
votes
1 answer
Wordpress Custom Type permalink containing Taxonomy slug
I'm trying to create a permalink pattern for a Custom Type, that includes one of its taxonomies. The taxonomy name is known from the start (so I'm not trying to add or mix all of its taxonomies, just a specific one), but the value will by dynamic,…

treznik
- 7,955
- 13
- 47
- 59
7
votes
2 answers
Query posts by custom taxonomy ID
I have a custom post type called portfolio and a custom taxonomy called build-type (acting as categories)
I am trying to query portfolio posts by build-type ID e.g. all Portfolio posts in "Hotels" (id=4 for that taxonomy)
// gets the ID from a…

mattberridge
- 361
- 1
- 2
- 8
7
votes
1 answer
Drupal : how to change current language of taxonomy
I have a Drupal site in English which has content i.e. nodes & taxonomy in English. Now I want to convert all content to Spanish. I want to retain the English content as well.
For taxonomy translation, I installed Locale and i18n module. I searched…

Loveleen Kaur
- 993
- 4
- 16
- 36
7
votes
3 answers
Connecting two points with curved lines (s-ish curve) in R
Suppose I would like to produce a kind of tree structure like the one below:
plot(0, type="n",xlim=c(0, 5), ylim=c(-3, 8), axes=FALSE, xlab="", ylab="", main="")
points(1, 2.5)
points(3, 5)
points(3, 0)
lines(c(1, 3), c(2.5, 5))
lines(c(1, 3),…

Alex
- 4,030
- 8
- 40
- 62
7
votes
5 answers
Wordpress Taxonomy title output
I'm trying to output the title of a taxonomy page when viewing it.
So like, if I was on a 'tag' page I would go:
But how would I achieve the same thing for if the user is…

Carpy
- 1,054
- 6
- 17
- 35
7
votes
7 answers
drupal - add select/option list to a form
I am a bit confused. I have created a simple form with a one text box and a submit button. Now I want to add a select/option dropdown box of taxonomy terms, using the taxonomy_get_vocabularies() function.
$vocabularies =…

harry_T
- 285
- 2
- 3
- 11