[Resolved] Change display of [gallery] shortcode in RSS feed
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_rsswhich 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?
- The topic ‘[Resolved] Change display of [gallery] shortcode in RSS feed’ is closed to new replies.