Sounds like you’d want to use this: http://codex.wordpress.org/Function_Reference/wp_get_object_terms
If you’re using a custom taxonomy, add that where it says “post_tag”.
unset($tags);
foreach(wp_get_object_terms($post->ID, 'post_tag') as $tag) :
$tags .= ' ' . $tag->name;
endforeach;
And then add it to your anchor tag:
<a href="https://wordpress.stackexchange.com/questions/36707/<?php the_permalink(); ?>" title="View Item" class="product_view_sm<?php echo $tags; ?>">..View Item..</a>
Related Posts:
- limit selection of custom taxonomies to one?
- tag.php doesn’t work with tags on a custom post type post?
- Taxonomy count per Post type
- If Post Type equals, then display X content
- Load custom posts with same tag as page
- post_tag taxonomy with custom post type
- jQuery UI in Admin (Best Practice?)
- Find callback function for custom taxonomy metabox
- Getting a div content of a post in wordpress?
- Debug whats going on inside a function called from AJAX
- Get posts with tag all post types
- Show certain terms from custom taxonomy but exclude ‘parent’ terms?
- How to save the checked boxes?
- Tag.php not displaying posts with the tag
- Registering tags taxonomy for a custom post type
- Query for custom posts with a specific tag slug
- Categories and Tags not working!
- associate custom post type with tags with specific pages
- Timepicker-addon doesn’t show – Datepicker works fine?
- different template for first and second level custom post page
- Custom Taxonomy – Tags Metabox is showing instead of Categories
- Where to store custom tagging data associated with a custom post type
- Can custom taxonomies items have attached properties?
- window.send_to_editor and jQuery .attr() conflicts with multiple custom upload image meta boxes
- Why does querying on post_tags (which has been applied to custom post types) only return posts?
- Does anyone have a plugin that could automatically tag custom post types in wordpress?
- Conditional PNG Overlay in Custom Post Type Loop Depending on Post Type
- How to display Custom Post Type Post based on Tag with Shortcode Parameter?
- Getting the URL of the parent page
- Group posts by custom post type
- Tag page with Custom Post Types not returning any posts
- Custom post types and tag archive pages/permalink structure issue
- Tag Archive for Custom-Post-Type Posts yielding 404 when permalinks set to postname
- Listing tags from a custom post type
- wp_update_term_count_now doesn’t work with a custom post type?
- Custom Tag Description unable to display just below and outside of the Loop
- Cross reference custom post types
- How to get all tags of a custom post type by id
- Load Next Posts With AJAX not working with custom post type
- How can I show 1 featured post in a styled element, and the next few below differently styled
- Conditional for a Single Post That Belongs to a Category?
- Show all tags on custom post type
- data-type=”” … needed post tags stripped of characters
- Why won’t this jQuery code work?
- Custom Post Type Slick Slider “$ is not a function”
- Meta data (Tags and Categories) for Custom Posts not showing.
- get_the_tag_list() returns bad links
- How to list tags from custom post type attachments?
- Check IF single OR multiple custom data has been entered
- How can I create an automatic drop down menu with my tags?
- Need help deciding on a taxonomy
- display custom taxonomies limited to custom post type?
- Get Posts by Category, Tag , and CPT Taxonomy
- WordPress admin display post type tags as checkbox
- The Difference Between Categories and Tags and Taxonomies and Terms
- passing values from functions.php to template
- Print all the tags from a custom post type
- How to Query in WordPress which shows Alphabetic Posts?
- How to constrain the results to a specific post_type on tag archive page?
- Revert to previous dropdown options after change
- Default post_tag for custom post type
- Custom posts – tag pagination
- Creating a Tabbed Widget
- add custom tags for custom post type in wordpress
- How to Display the tag content of Custom Post?
- Masonry Append WordPress posts with singleMode
- Displaying information from custom field on custom post type
- Issue with Custom Post Type Tags
- I can’t connect my custom jquery to wp admin
- If custom taxonomy else conditional [closed]
- Custom post type, taxonomy and admin bar
- Tag template not returning posts [closed]
- One post auto attached to many another items
- Navigate by Tags inside a custom Post Type
- Display custom-post type based on the Title matching the current selected value
- Why doesnt my tag page populate with this custom post type?
- jQuery UI & Admin (Calendar)
- Search CPT by tag ids
- get taxonomies from terms
- How to convert Post Object Custom Field into Tags
- Custom Post didn’t display on tags page
- Rewrite url post_tag for custom post type
- Filterable portfolio in WordPress using jQuery isotope
- Custom Post Type tag taxonomy “Page Not Found”
- Do not output category and tag URLs
- Display content based on Author Custom Post type
- Organizing The Custom Post Type with Taxonomies / Parent Posts
- Filter custom post type by tags
- Default taxonomy ‘post_tag’ added to CPT managing by custom role : nothing in the metabox
- Custom Post Type – Admin Columns
- Archive.php is not displaying tags
- Toggle a metabox based on a selection
- custom post type tags
- Tags and Taxonomy links not working for Custom Post Types
- Loop to pull content from parent element in custom post type [duplicate]
- Post type cloud like tag cloud?
- how insert how many post type in this function?
- How to set up a echo? [closed]
- Can WordPress show posts based on a button that the user clicked 2 pages back?
- How do loop categories post from according in WordPress? is it impossible to solve this problem?