Forums

Use post tags in heading (1 post)

  1. nickjohnbatch
    Member
    Posted 4 months ago #

    Hi,
    I am setting up a wp-Ecommerce store and would like to add the tags for each product just after the title of the product. I have figured out how to do this with posts but the code for products looks completely different. I can see where the title of the product is pulled in but how would I dynamically have the tags for the product displayed after its title.

    I think this is where the tile is called:

    elseif ( is_single() ) {
    
    				$post_id = $wp_query->get_queried_object_id();
    
    				echo '<h1>'.get_post_field( 'post_title', $post_id ).'</h1>';
    
    			}

    Thanks.

Reply

You must log in to post.

About this Topic

  • RSS feed for this topic
  • Started 4 months ago by nickjohnbatch
  • This topic is not resolved
  • WordPress version: 3.3.1