So, as iguanarama pointed out, the first step is to make sure that the theme you are using uses the_excerpt() to show the excerpt.
You’ll want to go check in your archive.php file how it is displayed. In my theme it was using the file 'template-parts/content-front-c.php'. Then go to this file and see what is the function displaying the excerpt. Right after the function gets the content, add $content=strip_shortcodes($content);, and, in my case, it worked !
Related Posts:
- Strip and print only the numbers found in current’s post excerpt (even if they are without space)
- Allow HTML in excerpt
- Shortcode to insert
- Shortcode putting html such as
- How to return the_excerpt (without echo)?
- How to return a string that has a variable inside in a shortcode?
- Using Echo in ShortCode – Stuck
- Passing a shortcode attribute to a sub-function
- Multiple do_shortcode($content) within one shortcode
- Adding Image Count to Multigallery
- My shortcode is showing up twice
- Custom plugin issue when trying to use the shortcode twice on a page [closed]
- WordPress menu deletes when trying to add a hook
- How to find the output of contact form 7 shortcode? [closed]
- How do i get (unique) page name?
- Can A Shortcode Get HTML/Text From Content And Return It Twice With Added HTML?
- Browser title script ignoring is_page /else conditional [closed]
- Nested shortCode functions in the functions.php file
- Why does running get_the_excerpt() when generating JSON file take 28 seconds vs. 599 milliseconds without it?
- get_page_by_title with an apostrophe in variable
- Making Quote Plugin more efficient
- How to limit the content coming from wordpress shortcodes?
- Custom excerpt function re-factoring
- How can I get content inside one shortcode to another shortcode?
- Use WP_Query in shortcode
- Create shortcodes within foreach loop (using array)
- How to exclude category ID from Looper in WordPress
- Add a specific part of current category page url to shortcode
- How to display data from custom table in wordpress phpmyadmin
- Calculating a large number of MYSQL queries as customshort codes, slow
- WordPress Shortcodes.. printf is outputting a random number… Can’t figure out WHY?
- How can I dynamically update the class in my shortcode?
- Creating own shortcode – echoeing php variable based on JS variable
- How create a Shortcode with hover and complex options
- Remove from shortcode
- How to Reference/Echo Variable from Another PHP Function
- Replace shortcode in substring
- Get URL from shortcode tag
- Only first shortcode gets executed
- echo something inside a shortcode
- displaying content that includes shortcodes within an echo
- Shortcode from a function not working
- Is it possible to return content, and then also continue to do other things?
- anyway to put inside a $outprint=sprintf()
- Creating WordPress Shortcode with Variable
- Catchable fatal error: Object of class stdClass could not be converted to string
- stripping tags from excerpt in WordPress is not working
- Could use some help with Shortcodes
- Line breaks inside shortcode variable
- Shortcode for Listing Users from Meta Value?
- Shortcode to log user into current URL
- How to remove the space before the ellipsis in excerpt?
- Calling PHP Titles inside Javascript Markup
- Create special button on WP Tiny MCE Posts Editor for Shortcodes
- Including Custom fields within the_content
- What is the difference between Null vs Empty (Zero Length) string?
- Show Featured Image Dimensions and size frontend with shortcode
- How to work Woocommerce pagination inside shortcode?
- Display logged in user name and lastname on page
- Display Visual Composer shortcode if a post belongs in specific categories
- is it possible for a URL to filter by tag
- Trying to create a shortcode to display categories with a specific product tag
- How to pass parameters in wordpress shortcode?
- Replace background image with post thumbnail in shortcode
- How can I prevent a shortcode div from extending beyond its boundaries?
- Conditional formatting on data fetched from MYSQL
- Adding variable in WordPress shortcode
- Display a custom name when the user has no name settle in his account
- Having trouble creating two shortcodes, one for logged in user and one for visitors
- Find and print first entry from WordPress post in custom excerpt?
- Execute Shortcode in Textfile
- custom taxonomies not working
- Display current user metadata on WordPress page
- Add Shortcode to ::before class
- Reload page with a different shortcode when a user selects from a dropdown
- How Can I Display the Last Modified Date for User Profiles on WordPress?
- How to output values from a loop into a javascript array
- Shortcode’s output to use as other shortcode’s parameter
- Short code into PHP
- Add two or multiple functions in WordPress Post or Page
- Shortcode Works for Logged in Users but Not Working for Guest
- perform mathematical operation on shortcode
- Update same content in multiple posts at once?
- problem multisite with blog id
- Shortcode At top of Page – PHP 5.5 vs 5.4 – ob_start();
- Create dynamic content from one WP page to multiple other pages
- Shortcode Display From WordPress Dashboard Page Without Using post_id
- Do_shortcode on PHP file outside theme ALMOST works
- Using the same shortcode to show any table from the database
- Shortcoding with Divs
- How can I add more code to this?
- Custom Shortcode with Dynamic Button
- Shortcode for Visual Composer Grid fails turning string to integer
- Is there a better way to output HTML as a shortcode?
- Gutenberg – render_callback does not pass ToggleControl value on frontend
- Remove post image caption from post_excerpt();
- why css file not link?how to create permalink?
- How call WordPress shortcode inside function file
- Shortcode Displays 2 times
- “Joined in” or “Member since” displayed on single store page and then using shortcode to add