Before you ask please READ THIS

wrong picture in rss feed

edited December 2012 in Hypershot Posts: 32
Hi,

don't know if this is really a point of this theme, but my rss feed is showing the wrong picture. It would be great if the feature picture show up in the rss feed. This is how it worked before I use your great theme. Is there anything I can do?

Best wishes
Stefan

Comments

  • AirAir
    Posts: 10,970
    Hmm I don't see any image under address http://mysite.com/feed/ ? Where do you see it?

    With regards.
  • At google reader :)
  • OK, I fixed it by myself with a little function :)
  • AirAir
    Posts: 10,970
    Could you come with some details?:-) Maybe I could add it in next update:-)

    Thanks in advance!

    With regards.
  • function rss_post_thumbnail($content) { global $post; if(has_post_thumbnail($post->ID)) { $content = '<p>' . get_the_post_thumbnail($post->ID, 'medium') . '</p>' . get_the_content(); } return $content; } add_filter('the_excerpt_rss', 'rss_post_thumbnail'); add_filter('the_content_feed', 'rss_post_thumbnail');

    And of course it would be better if [gallery] would be eliminated of content :)

    Best regards
    Stefan
  • AirAir
    Posts: 10,970
    OK thanks for that. I will look at this while preparing next HyperShot update. Btw. I am ending update for Spaceship. I wonder if you will think it will be much better now, as I have fixed many things:-)

    With regards.
  • AirAir
    Posts: 10,970
    Hypershot 1.1 is available with this feature included(added your code, thanks). Please download newest version from themeforest.

    With regards.
Sign In or Register to comment.

Howdy, Stranger!

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