Another option is to use the do_shortcode() function. This will make WordPress run the shortcode as if it was in the content editor.
So where you want your post tags to appear just put.
<?php echo do_shortcode('[post_tags]'); ?>
Related Posts:
- WordPress removing tags?
- How can I make a post that belongs to a category or have specific tags, display different from the other single posts?
- What parameters do I need to pass to get_tags to get ALL tags for the site, when used in a post
- Hide Certain Tags on Single Post Page
- Insert Shortcode exactly at the end of the content
- WordPress More tag doesn’t work on Single post
- Stop WordPress automatically adding tags to post content
- How to detect single.php (but not single-portfolio.php)?
- Custom Single Post By Category
- Add tag to post api wordpress
- Set tags for a post – without tag creation
- Using single.php from plugin folder instead of default template folder
- Custom permalink structure only for default posts
- Related Posts by Multiple Tags?
- How to remove Nextpage tag inside posts text depending of utm_campaign
- How do I create a link that will always show the latest post?
- Verify if tag is used on posts
- Update all posts automatically when using post_meta
- Search & Remove Specific Shortcode From All Posts
- Plain-text tag list?
- Display posts by tag on page
- Edit a post from frontend. post_tags get saved, but not separated
- Shortcode Not displayed at the Right Place [duplicate]
- Convert IPTC keywords to blog post tags
- Automatically added brs and paragraphs?
- Post X of Y in single.php / sidebar.php
- HTML code in Custom field
- how to limit and display tag?
- How to have different content in the loop and single
- Single.php Active Category Class
- Specific loop in Shortcode
- Include related posts on a page
- How to display post tags
- get_terms parent for current product only
- custom single.php not working
- Remove post_tag from default post type, add custom taxonomy
- How To Add Perfect Apostrophe And Quotation Mark In WordPress Posts?
- What Defines What Category A Post Picks (if in multiple)
- Adding variable for post title so post template can include auto-generated link to view on external website.com/{post title}
- How to create shortcode to show the 2 latest posts
- How to display different single post template based on author?
- Hide Post comments when displayed via WP_Query
- Does an action fire when adding a tag via the “Tags” meta box?
- how load content as pop-up using ajax
- Disable single post page
- how to programmatically change post tags
- how to know if the post has pagination () or not
- Remove Shortcode […] from Blog Preview
- Remove arrows from previous and next link
- Filter Posts By Tag
- “next_posts_link” and “previous_posts_link” display me NOTHING
- WordPress post tag & custom field
- WP Query related posts by current page Tag ID
- How to display all posts assigned to some tag?
- How to disable single post view in wp
- How To Add One Tag to Multiple Posts?
- Custom Post Templates
- Add code just after Post content
- Add Post Tags to Body Class
- Pagination on single post page?
- Display a post by ID attribute with shortcode
- How to prevent WordPress from updating the modified time?
- UberMenu list current user’s posts as menu items
- Restrict post navigation to current sub menu
- WP Query – duplicated posts once including tags in search results
- wp_tag_cloud() and the_taxonomies() work but not the_tag()
- Can’t get the_content of the parent page from its single post?
- Tags to Post-ID mysql query. Tag Search
- Show all posts in sidebar in single.php
- Duplicating Table of Contents for Paginated Post
- Query how many items to show in shortcode
- How to add Tags Filter in wordpress admin dashboard
- Prepend or add an Image to the content of a Post
- Display post from current category and same tag?
- do_shortcode within post query
- How to show single post page as home page
- Using wp_list_categories like the the_category (showing just current categories of a post)
- How to get rid of shortcodes in post content once and for all
- Should I use posts or pages in this scenario?
- Display posts with tag that matches current post title
- get_the_content(“more…”) returns full text
- Display all posts that were published before full post on single.php
- Using permalinks, category slugs, and tag slugs
- Is there a straight-forward way to iterate over all shortcodes in a post?
- “more” tag doesn’t appear when browsing category achives or search
- How can i display gallery shortcode output under Post text
- Print all the tags from a custom post type Please
- Display tag image in post using Taxonomy Images plugin index.php
- How to display Common posts from specific Tag & Category with Shortcode
- Add multiple tags to multiple posts
- Help with Taxonomies
- What’s the best way to render Visual Composer in posts, not pages?
- Add Read More Tag to a post content (Single.php)
- display-posts shortcode attributes have no effect
- Shortcode and whitespace formatting problem
- WP_Query: Mixing category__in and tag__in together
- If in_category not working for multiple single.php pages
- How to add tags (custom taxonomy) to post class css?
- How can I hide tags on a child-category page, if that tag has not been used?
- Shortcode to display the latest news article within a page