WordPress.org

Forums

WP Gallery Custom Links
[resolved] Problem with Javascript in RSS Feed (4 posts)

  1. Mark
    Member
    Posted 2 years ago #

    Tried your plugin and although I love the concept I had issues with it out of the gates. It looks great, but the Javascript that this apparently uses is included in the RSS feed which broke my mailchimp newsletter (according to Mailchimp support the javascript caused them to stop reading the rest of the post). If there were an easy way to not include this in the RSS feed, I'd probably try it further, but I'll have to live with the clunky way WordPress handles galleries for now. :-(

    http://wordpress.org/extend/plugins/wp-gallery-custom-links/

  2. fourlightsweb
    Member
    Plugin Author

    Posted 2 years ago #

    I added a !is_feed() around the part that writes out the javascript in the version below. Can you download this file, swap it out for the one in the plugins/wp-gallery-custom-links folder (don't forget to remove the .txt at the end), and see if it works in your feed afterward?

    http://www.fourlightsweb.com/temp/wp-gallery-custom-links.php.txt

    It looks like it's working on my test site, but I'd like to be sure it will work for you before I push the new version. Note: you may have to clear your cache to see the updated feed.

  3. Mark
    Member
    Posted 2 years ago #

    Awesome! Since it's not something I needed routinely I opted for a short and sweet route to fix it last night - just displaying thumbnails with links in a grid, but if I were to need this more regularly, I'd definitely go this route!

    I did test your updated code with a test post on my site just now and there was no javascript that I could see in the RSS feed. I didn't want Mailchimp to pick it up so I deleted the post but the lines of code their support people indicated caused the issue was no longer there so I think you succeeded!

  4. fourlightsweb
    Member
    Plugin Author

    Posted 2 years ago #

    Well if you ever need it in the future, 1.1.2 contains the no-javascript-in-feeds version. :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Gallery Custom Links
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic