Weaver II Support Forum  Forum via Feedburner
    Home  |   Blog  |   Why Weaver?  |   Download  |   FAQ  |   About  
Shortcodes in excerpts showing up in the feed - Weaver II Support Forum
Search Support Forum First!
Loading

Posting Guidelines & Vanilla Forum Help

Before posting, please read the Posting Guidelines. Failure to follow the guidelines can result in being ignored!
There also is some help there for using the Vanilla Forum.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID

Brighten your day with this inspirational music video: Free download at Ivory Drive

In this Discussion

Shortcodes in excerpts showing up in the feed
  • scramblerscrambler
    Member, Moderator
    As the title mentions if I have shortcodes in the manual excerpts (likes youtube, mobile show hide...) They show up in the feed text.
    Would it be possible to filter them out?

    Thanks
  • weaverweaver
    Administrator, Moderator
    I guess that is why other themes don't do_shortcode for the manual excerpt - which was a very recent addition to Weaver II.

    I will see if there are any filters used for the rss feed. What solution would you want? Just strip shortcodes entirely (you wouldn't probably want them expanded for a feed item), or perhaps an ellipses? But in order to do anything, WP must be passing the RSS excerpt text through a filter - if it doesn't, there is no way to grab and modify it.
  • scramblerscrambler
    Member, Moderator

    I am not too familiar with feeds so i may not be able to provide too much insight. I was just surprised to see them when testing the feed page.

    If feeds are only grabbing excerpts, then the simplest thing would be to just strip away the whole shortcode. We would loose the content /effect resulting fom it, but retain the essential and get a clean text.

    There may be cases where the shortcode provides important content, and were people may wish to be able to evaluate the shortcode and pass the result to the feed, but this is probably a can of worm as there will be many different cases. Like you may not want to pass the content of a youtube one but pass another... this is really your call based on complexity.

    If there is an easy way to just strip all of it , I would start with that.

    Thanks for listening

This discussion has been closed.
All Discussions