Support » Fixing WordPress » Filter certain content from post for RSS feed

  • Hi,

    I’m using javascript within my posts, and this displays within the RSS feed – which is not what people want to be seeing.

    Is there a way of filtering this out? And is there a way to filter out content by id or class? Perhaps there’s a tag which makes content invisible to RSS readers?

    Thanks for any help


Viewing 1 replies (of 1 total)
  • OK, I’ve had a thought…

    According to this site – – you can apply CSS to RSS…

    <?xml version="1.0"?>
    <?xml-stylesheet type="text/css" href=""?>

    …and therefore to hide content from RSS I could do something like..

    .hideMe { display: none }

    Firstly, where would I implement the first bit in my wordpress templates?
    Secondly, does this sound like a good approach?


Viewing 1 replies (of 1 total)
  • The topic ‘Filter certain content from post for RSS feed’ is closed to new replies.