Questions tagged [taxonomy]

The classification, or categorization, of things

1570 questions
3
votes
0 answers

Multiple tax_query with relation OR

I have an taxonomy that may be have one or more items with selection. Is possible on WP_Query with tax_query and specify if can get results with relation 'OR' that is possible or select A or B (for example) using the same parametter? if…
josotoru
  • 77
  • 1
  • 6
3
votes
4 answers

Drupal, disable path

I have a drupal website using taxonomy. Now google indexed the taxonomy paths like: http://mysite.com/term/5865. Now most of the taxonomy pages should not be accessable, and I want to remove the path, but I can't find how to do it anywhere. Does…
Nealv
  • 6,856
  • 8
  • 58
  • 89
3
votes
1 answer

WordPress taxonomy.php not working for custom taxonomy

I have a custom post type "certificates" & I have a custom taxonomy "certificate_category" that registered for "certificates" custom post type. here is my definition of taxonomy: $args = array( 'labels' => $labels, 'hierarchical' =>…
mhnz
  • 31
  • 5
3
votes
1 answer

Woocommerce: order by custom taxonomy

I'm having the following problem. I have set up a Wordpress site with WooCommerce to serve a webshop with only books. I have created some product attributes that are based on taxonomies like 'publisher' and 'author' (as multiple products can share…
v1nk0
  • 41
  • 1
  • 8
3
votes
1 answer

How to display taxonomy parent for selected taxonomy

I want to show on the site the parent of the selected taxonomy. For that I have the above code but the problem with this is that it is showing all the selected taxonomy in a list with now structure. global $post; $features = get_the_terms(…
Neculai Andrei
  • 223
  • 5
  • 17
3
votes
2 answers

Drupal: How to build a categorized menu tree

I need to build a custom menu structure based on taxonomy terms. The Problem is that only the first level should be a Taxonomy-Term. All nested items must be a node. Each node can have only one Term. And Terms without any nodes associated should not…
gearsdigital
  • 13,915
  • 6
  • 44
  • 73
3
votes
1 answer

wordnet 3.0 maximum depth of the taxonomy

How can I know the maximum depth of the taxonomy for wordnet 3.0? (is-a relationships for synsets) I read some papers and found from a paper that it is 16 for wordnet 1.7.1. I'm wondering the value for wordnet 3.0.
3
votes
0 answers

Drupal 8 - Custom Url path for node with taxonomy

I'm trying to save a custom url path like such: "/PARENT_TERM/TERM/NODE_NAME" Thanks to Pathauto, I've managed to get hold of the info I needed to construct the url string but I can't seem to get my url to save. I'm also not sure whether it would be…
3
votes
1 answer

Taxonomy view with nodes

Using Drupal 6, I'm trying to create a page with views that shows something like the following: -Taxonomy Term 1 -- Title and description of a node that contains this term -- Title and description of a node that contains this term -Taxonomy…
bkildow
  • 5,143
  • 4
  • 29
  • 37
3
votes
2 answers

Wordpress: custom post types: using custom fields or taxonomies?

I'm thinking about using WP custom post types to create a basic real estate website. The post type will be for property listings. I've decided to have one post type for For Sale and one for Rentals, simple because they have somewhat different…
mos fetish
  • 506
  • 2
  • 13
3
votes
1 answer

WordPress Custom Taxonomy Terms Custom Order in Dashboard & Admin Panel

I have WordPress taxonomy custom registered and in Admin panel its terms are being shown in Alphabetic order. I want to change it in custom order as in order they were added. So in Dashboard and Add New Post and Edit Post screen, the taxonomy widget…
3
votes
1 answer

Wordpress wp_set_object_terms is not working for custom taxonomy

Hi guys i am trying to add post in WordPress. I used CPT UI to created/register custom post type and custom taxonomies. I used the code below to add my post. $post = array( 'post_title' => $title, 'post_content' =>…
Romnick Susa
  • 1,279
  • 13
  • 31
3
votes
2 answers

How can I programmatically add taxonomy terms to a node in hook_nodeapi()?

I am creating a module that needs to tag nodes with taxonomy terms when they are created. I have implemented hook_nodeapi() to do this, and am trying to add the term in there like so: function hook_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) { …
Jamison Dance
  • 19,896
  • 25
  • 97
  • 99
3
votes
0 answers

WordPress Custom Taxonomy hierarchical terms rewrite

I have created a custom taxonomy URL structure that is as follows: /term_slug/post_name I have created custom rewrite rules to do this, as follows: register_taxonomy( 'blog_type', 'post', array( 'labels' => array( 'name' …
David
  • 2,365
  • 8
  • 34
  • 59
3
votes
2 answers

WooCommerce display product categories in product title

I have a Wordpress (version 4.2.2) eCommerce site running WooCommerce (version 2.3.8). On my individual product page I wish to set the title of the product to also include the custom categories I have created in WooCommerce and that this product…
heyred
  • 2,031
  • 8
  • 44
  • 89