Random Content
[resolved] Random Content Incompatible with Nextgen Gallery (6 posts)

  1. agreda
    Posted 2 years ago #

    I was excited to use this plugin, it is pretty sweet.

    Unfortunately, it does not work with NextGen Gallery activated which throws a bunch of garbage when trying to render the same [random] shortcode it also uses.


  2. agreda
    Posted 2 years ago #

    The fix for this is simple! I just edited line 17 of the plugin code to register a different shortcode unlikely to conflict with any others...

    add_shortcode( 'randomcontent', array( &$this, 'shortcode') );

    Just need to remember the edit whenever plugin gets updated!

  3. Johnny T
    Posted 1 year ago #

    Thanks for this agreda. I was having exactly the same problem. Your solution worked a treat :-)

  4. agreda
    Posted 1 year ago #

    @endocreative Any chance this might get worked into an upcoming release? Please!

    I had actually forgotten about the issue, and was working on another site when I noticed a NGG gallery displaying where I put the [ random ] shortcode. Frustrated, I searched these forums, and found my own fix above!

  5. Jeremy Green
    Plugin Author

    Posted 1 year ago #

    Thanks for the feedback @agreda. I've got it on my list of things to do.

  6. agreda
    Posted 1 year ago #

    Thanks for checking in on this @endocreative

    I may have spoken too soon...it looks like Random Content will now break NextGen galleries shown on the same page, no matter what the random shortcode is. I reverted to v. 0.3 and had the same issue, so it may be due to something in a recent NGG update.

    NGG widgets don't break, but if I place a gallery on a post/page that also has a Random Content shortcode, the gallery will only display its thumbnail.

    Maybe @technocrati might be able to chime in here...

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Random Content
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic