[resolved] Change display of [gallery] shortcode in RSS feed (1 post)

  1. docflo
    Posted 6 years ago #

    I have a piece of code in my functions.php that alters the display of galleries on my page. By default the "medium" images link to the "original" size.

    This code is called via
    add_filter( 'post_gallery', 'special_gallery', $attr );

    Anyhow, this does not seem to affect the gallery display in RSS feeds. In feeds the images link to their attachment page, which I would like to avoid.

    I tried making special rules in the functions.php and adding them to the_content_feed or the_content_rss which didn't change anything. I also tried using the conditional is_feed, which also didn't change anything.

    Any suggestions on how I can change the gallery shortcode behavior without hacking core files?

Topic Closed

This topic has been closed to new replies.

About this Topic