FAQ Database Discussion Community


Wordpress: Display Subcategory Name Without Link

wordpress,taxonomy
I have this code that works great to show the subcategory name and link of a specific parent category of my choosing: <?php $taxonomy = 'category'; // get the term IDs assigned to post. $post_terms = wp_get_object_terms( $post->ID, $taxonomy, array( 'fields' => 'ids' ) ); // separator between links $categories...

Wordpress - Hide taxonomy fields in QuickEdit

wordpress,hide,taxonomy
after creating taxonomies for a custom post type, they all show up in QuickEdit. I'm trying to hide them to use the menu for other custom fields but don't know how to do it. Appreciate for any help.

Wordpress - Get part of taxonomy name

php,wordpress,taxonomy
can help me? I'm trying to get part of name to taxonomy. Taxonomy slug: temporada-01 I only need the number: 01 I've this code, but this display the name. <?php $terms = get_the_terms( $post->ID , 'temporada' ); if ( $terms != null ){ foreach( $terms as $term ) { print...

Wordpress post tags in menu

wordpress,tags,taxonomy
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?

Conditional text for certain categories within taxonomy.php

wordpress,conditional,archive,taxonomy,easy-digital-downloads
I am building a Wordpress site using 'Easy Digital Downloads'. The downloads have their own 'categories'. To display an archive of those categories (different from the standard archive.php) I am using a template called taxonomy-download_category.php as specified in their documentation. This works perfectly and I can set up the category...

How to Display Terms for all posts in Current Archive or Query in wordpress

wordpress,category,taxonomy
I have custom post types with select option.In select option I got all the taxonomy categories and on change of select it displayes all posts of post type but when I go to single page it displayes only this current post not all from this category. I tried this code...

how to remove /t taxon path in spree 2.x?

ruby-on-rails,spree,taxonomy
We are developing eCommerce website using Spree, the categories link getting like /t/brand/ruby. But we have to remove /t on taxon. Thanks Thiyagarajan Veluchamy...

How to Get Wordpress Attachment Taxonomy Data

wordpress,metadata,attachment,taxonomy
I've used the method on the following page to create a Taxonomy named Location. http://code.tutsplus.com/articles/applying-categories-tags-and-custom-taxonomies-to-media-attachments--wp-32319 How can I get the data from the field named Location and return its value. Please help! Thanks...

WooCommerce display product categories in product title

php,wordpress,woocommerce,taxonomy
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 belongs to. I find the following file (wp-content/themes/mytheme/woocommerce/single-product/title.php) that...