get_the_content()
returns unfiltered content, and using a shortcode you cannot use the_content()
to return filtered content as you cannot echo inside a shortcode. Your best option here will be is to applying the_content
filters to get_the_content()
, something like:
apply_filters( 'the_content', get_the_content() );
EDIT
Exact usage, replace
$output .= get_the_content();
with
$output .= apply_filters( 'the_content', get_the_content() );
Related Posts:
- Stop WordPress automatically adding tags to post content
- WordPress removing tags?
- Querying post from a multisite network
- Update all posts automatically when using post_meta
- Search & Remove Specific Shortcode From All Posts
- Shortcode Not displayed at the Right Place [duplicate]
- Automatically added brs and paragraphs?
- Specific loop in Shortcode
- How to add shortcode tags in single.php [closed]
- How to hide a post from ‘Recent Posts’ widget?
- How To Add Perfect Apostrophe And Quotation Mark In WordPress Posts?
- 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
- Hide Post comments when displayed via WP_Query
- Remove Shortcode […] from Blog Preview
- How to get most recent commented post above new submitted post in WordPress?
- Two posts are loaded instead of one?
- How to start with post number x?
- Display a post by ID attribute with shortcode
- UberMenu list current user’s posts as menu items
- Display most recent post on homepage?
- Duplicating Table of Contents for Paginated Post
- Query how many items to show in shortcode
- do_shortcode within post query
- How to get rid of shortcodes in post content once and for all
- recent posts for different categories
- get_the_content(“more…”) returns full text
- Is there a straight-forward way to iterate over all shortcodes in a post?
- How can i display gallery shortcode output under Post text
- How to display Common posts from specific Tag & Category with Shortcode
- WP Bakery Load More Button loads the same posts
- What’s the best way to render Visual Composer in posts, not pages?
- display-posts shortcode attributes have no effect
- Shortcode and whitespace formatting problem
- Shortcode to display the latest news article within a page
- How to get date of post when using wp_get_recent_posts()?
- Shortcodes on my website stops working after theme update [closed]
- How to get ID of the page included with get_page()?
- How to get a post’s details by shortcode?
- Latest posts by category — how to exclude current post?
- Shortcode with ‘year’ parameter
- How come a YouTube link isn’t transformed into a shortcode inside the post content?
- Is it possible to add a shortcode below post title?
- WordPress 302 Redirect to Random Product/Post/Page
- Add hero image to home page (blog format) via the dashboard
- How to convert query sql to shortcode in wordpress?
- How can I add 2 buttons with shortcode
- Get x recent posts by author?
- Showing recent post of category in page
- HTML Inside of Shortcode Breaks Shortcode Output
- How to show 3 most recent/viewed posts in a special tiles on home page using wordpress?
- Shortcode for tables which can include comma and linebreaks
- post/page content
- Change published date and time using SQL query for page in every 5 hour
- What parameters do I need to pass to get_tags to get ALL tags for the site, when used in a post
- Shortcode for Comments and Comment Boxes in Post Loop
- get category in list of posts // shortcode for custom related posts
- shortcode // get posts by ids
- Display “no post” message
- How can I create a shortcode to show the number of posts of actual day?
- Featured Story Shortcode not outputting content
- Function is printing twice – any suggestions?
- How to pull sticky post permalink inside php?
- Contact Form 7 Shortcode not recognized inside another shortcode
- Display Post from Custom Post Type with Shortcode
- wp_insert_post() Add and specific ID to the body of that
- Add a url parameter to the current post and read it in a shortcode
- Secretly passing post ID/title etc into a shortcode form automatically to link submission to post
- I need show posts by customer (Shortcode)
- Is it possible to query a category with specified posts?
- Shortcode: How to add custom posts?
- Add category attribute to custom recent post shortcode
- Shortcode for printing post titles
- Have latest post and recent posts display differently
- How to use extract shortcode in loop?
- Using Post ID and Page ID in same function
- Display only posts with comments
- Change the default video URL in a post to shortcode format
- How do I add an article to specific page?
- get value from post to sidebar
- WordPress Yoast SEO plugin Post Save/Update Issue
- If post has non-shortcode string
- Insert Shortcode exactly at the end of the content
- Trying to create shortcode listing custom posts, but formating not being included
- Simple shortcode to check if a user has commented on a certain post
- Undefined Function Fatal Error with Shortcode [closed]
- How to use shortcode to get the second to newest post?
- How to Group Posts by the First Letter or Number?
- I’m having some issues with previous_post_link() and next_post_link()
- Where is the “ancestors” post object attribute?
- Is it possible to create a form post wordpress custom navigation link?
- creating front end image uploader that uploads images as posts
- Post list display year wise
- Get author posts count after excluding a category
- How to add PHP code snippet to all Post pages?
- Unable to edit or post after enabling SSL
- External link not showing on post but showing on comment
- TCPDF and permalinks
- How to make post stick to its own div
- WordPress Custom Post type csv exporter