I tested following code and it worked just fine for me:
function my_name_shortcode( $atts ) {
return "<h3>PRASAD</h3>";
}
add_shortcode( 'name', 'my_name_shortcode' );
add_filter( "the_excerpt_rss", "do_shortcode" );
The result can be seen in below screenshot.
Related Posts:
- the_excerpt and shortcodes
- Stop strip_shortcodes() stripping content inside shortcodes
- Shortcode content does not show in feed discription/excerpt
- WordPress gallery ‘post_gallery’ filter doesn’t work with feeds?
- Easy way to show excerpts of specific posts on a page
- Shortcodes in excerpts returning empty string
- Retrieving post excerpt as a shortcode
- 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()
- Hide disclaimer from summary excerpts
- 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
- Using get_option() in JavaScript
- Shortcode empty attribute
- Using wp_editor in shortcode
- Making a Shortcode [NEXT] and [PREVIOUS] to place into specific posts for post navigation
- How to display the site name in a WordPress page, or post
- How can I put a wp_redirect into a shortcode?
- Using audio shortcode for .mp3 URLs with a query string
- Get multiple shortcode attribute values
- Why do_shortcode is not executing the shortcode in data-* html attributes?
- Some doubts about gallery shortcode in WordPress
- has_shortcode for content added after the content
- Shortcode displays only default attribute values
- Creating a Slider Shortcode Based on Nivo Slider
- How can I make a shortcode from this code?
- Adding PHP/HTML code inside page from custom template
- WordPress auto adds p to shortcode parameters
- Why isn’t this youtube shortcode working?
- Gist shortcode is not working
- ShortCode and extra
- How to change page title (from a plugin) in twentytwentyone theme
- WordPress Code Standards and Working $link Parameters In Shortcode
- How to set Contact Form 7 fields default value using shortcode attribute? [closed]
- Display post metadata: “title, category, author, date” with shortcode
- Shortcodes Keep Wrapping in
- Check if post has gallery images/media
- If you add a shortcode programmatically, but the code isn’t viewed on that request, is it still executed?
- Shortcode help: If no image entered take default
- How can I escape a section of my page which contains multiple shortcodes?
- Populate shortcodes with table data and get next row
- Running shortcode with variable that is modified
- shortcode to display post by category entered by user without plugin
- How to apply an ID to Shortcode Embedded iframe
- How to change the output of gallery shortcode
- wp_list_pages shortcode jumps above previous content
- Shortcode attributes don’t appear?
- Using $this from child class inside shortcode function
- Div-Wrap with Functions.php in Childtheme using Shortcode!
- Trying to call dynamic content as a shortcode attribute
- Why can’t I display attachment_image_src with Custom Size?
- Get attributes of nested shortcodes
- Shortcode into the same shortcode
- How to create a shortcode to let the user add the ID of a YouTube video?
- Execute shortcodes in PHP
- A shortcode nested inside a shortcode
- Custom Shortcode + Querying and Ordering Posts using multiple Advanced Custom checkboxes
- Add div on EMED Tag
- call other shortcode in the email contactform7 send [closed]
- Putting a space between the buttons [closed]
- Processing a login/register form before shortcodes are rendered?
- Dynamic number within shortcode
- Returning HTML to Shortcode Block
- WP REST API remove the WordPress shortcodes from the JSON wp/v2/posts content->rendered
- How to display html element and php string in the same line?
- Hide download option video shortcode
- WordPress Shorcode Display hierarchical taxonomy [child, parent]
- Shortcode not working in Jetpack Top Posts & Pages widget
- Restricting shortcode for users
- Gutenberg running code only available in front end within shortcode
- Insert HTML in content property and render it using shortcodes
- Redirect per shortcode if user is logged in
- Shortcode, vs blocks, vs templates – what would you do for choosing or creating custom post data in editor?
- create shortcode that changes url endpoint
- Convert WordPress shortcodes into plain html
- Attributes are not passed on nested shortcode
- Auto-generated excerpt with shortcode and read more button/text link
- How to make a shortcode with a line break in it parse correctly?
- Removing text + shortcode from all posts
- Plugin Shortcode value in post
- Woocommerce Filter Main Loop by Tag [closed]
- Shortcodes: override a shortcode / change shortcode on the fly
- Access the resized images generated by `add_image_size()`
- Custom WP theme not showing shortcodes
- woocommerce Product shortcode create [closed]
- A number appears inside a div called wpb_wrapper, when I use a custom shortcode
- Enclose article’s body with default shortcode
- Why is my ajax live search not working when i use a shortcode to call it?
- Shortcode with foreach
- WordPress shortcode select option not working [closed]
- Shortcode attributes from meta query variables