If you’re using auto-generated excerpts, then all shortcodes will be removed (https://developer.wordpress.org/reference/functions/the_excerpt/):
An auto-generated excerpt will also have all shortcodes and tags
removed. It is trimmed down to a word-boundary and the default length
is 55 words. For languages in which words are (or can be) described
with single characters (ie. East-Asian languages) the word-boundary is
actually the character.
And it makes sense – you don’t want any advanced HTML in these excerpts and you have no control over what output will a shortcode generate (it may be something basic, but it may be a lot of complicated HTML code…)
Related Posts:
- the_excerpt and shortcodes
- Stop strip_shortcodes() stripping content inside shortcodes
- Shortcode content does not show in feed discription/excerpt
- Easy way to show excerpts of specific posts on a page
- Retrieving post excerpt as a shortcode
- Shortcodes in RSS excerpts
- shortcode issue in the_excerpt
- How to Get Shortcode in Excerpt to follow Document Flow
- Excerpt Length & List Category Posts Plugin
- Shortcode not displaying video as expected
- shortcode doesnt work on excerpt
- Remove figcation from excerpt
- the_excerpt displaying code inside style tag
- How to strip header tags & shortcodes from the_excerpt()
- Running Filter or Shortcode Before Query Prevents Excerpt from Showing
- Pull in excerpt with shortcode
- How to stop unwanted splits in excerpts when using shortcodes for sliders or players
- Inserting shortcode is blanking excerpt – any ideas?
- Wpautop stops working after get_the_excerpt
- Custom shortcode being executed when saving page in wp-admin
- Change appearance of shortcode text inside editor
- Shortcode outputs at the top of the_content
- How can I just get content inside a shortcode or just outside
- WordPress core responsive video not working with shortcode
- WordPress gallery ‘post_gallery’ filter doesn’t work with feeds?
- Ajax not returning anything on form submit
- Simple contact form with field validation
- Slow page loading when using a simple shortcode on the same page multiple times
- Using do_shortcode with variables?
- Using ACF field in do_shortcode()
- Display content from another site page using a shortcode
- Remove hyperlink on gallery shortcode
- Shortcode with no attribute but has value
- Remove wpautop from specific shortcodes only
- Combining similar shortcode functions?
- Shortcode adding plugin output before post, instead of inline [duplicate]
- How to build a shortcode which can insert a query string into a DB table
- What is the Correct way to pass parameters in function
- Shortcode – Getting Categories appears on top of website
- Visual Composer integration [closed]
- How to Modify WordPress Default Image Gallery Shortcode
- Passing html tags as shortcode parameters
- Button Shortcode
- Gutenberg Block with Select from JSON-File
- Shortcode function executed twice?
- add widget to page content (using shortcode)
- Pagination for a page created by the shortcode “Product”
- Unable to the get the gallery inserted between shortcodes
- wp_editor in thickbox
- How to use the same shortcode with different attribute values on same page
- WordPress messes up with data attributes in shortcode output
- Displaying audio player as preview in audio post in WP3.6
- WordPress post pagination continuous [duplicate]
- custom field value as shortcode parameter
- Shortcode don’t work in custom option field, any solution?
- Slow page Loads When Using Dynamic Coding
- redirect if shortcode exists
- Position shortcode off [duplicate]
- Query to list all galleries under a parent post?
- Adding the username into a URL to redirect to a specific page
- Shortcode Help Needed → attributes
- Cant fix this Warning: Invalid argument supplied for foreach() in [closed]
- Different ID in every shortcode
- Unique ID for WordPress shortcodes when used more than once on a page?
- How to find out what handler is registered to a shortcode
- How to display NextGEN gallery in templates?
- Build Clickable Link Using Multiple Attributes
- Is the WP audio shortcode still relevant?
- Disable wpautop on Shortcode attributes
- remove shortcode pagination for specific url referrer
- Third-Party API – PHP Fatal Errors Paired with http_request_failed / cURL error 28
- Using within a shortcode
- Shortcode not working when I output data from wpdb html table row
- How do I point bloginfo(‘stylesheet_directory’) to my parent theme?
- Hide disclaimer from summary excerpts
- How to list child pages with excerpts, e.g. [child-pages depth=”1″ excerpt=”1″]
- Add a shortcode in woo-function.php
- Get current category and place it in shortcode
- Woocommerce products shortcode specific order
- Modify Blog Module layout in Child theme
- Video shortcode outside WordPress not working with IE and mediaelement’s Flash fallback
- Display title of child pages in shortcode
- Output html source tags inside shortcode
- How can I define the output of shortcode attribute value?
- What is the best way to include a template file within a shortcode?
- Shortcode templates
- Create plugin/function to catch XML-data via Shortcode
- Why My slider shortcode display above header
- Does anyone recognize shortcode ig_special_heading?
- How to scroll to a shortcode-generated anchor
- add post type pram to wp shortcode
- Shortcode conversion to hrml when post is published
- Shotcode error on functions
- Shortcode for displaying the user’s first name?
- Can I prevent wordpress adding and tags to autoembeds
- Shortcode – Display inline icon before text [closed]
- Hook into existing shortcodes to manipulate the attributes?
- How can I hide the ACF shortcode when empty
- Using variable as shortcode parameter
- How to handle Ajax Calls, when using same shortcodes (with different parameters, e.g. ‘post-type’)?