FAQ Database Discussion Community

Wordpress: Display Subcategory Name Without Link

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 - Get part of taxonomy name

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...

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

How to Get Wordpress Attachment Taxonomy Data

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...

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?

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

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 Display Terms for all posts in Current Archive or Query in wordpress

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...

Conditional text for certain categories within taxonomy.php

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...

Wordpress - Hide taxonomy fields in QuickEdit

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.