• Resolved clazzid

    (@clazzid)


    Hello, great plugin by the way, one thing i would find really useful is a way to have a second instance of a featured gallery in a single post, I currently need 2 galleries that will be handled and styled separately in a single post, would this be easy to implement? maybe just adding and renaming some functions manually?
    if so could someone point me to the right files and lines?

    https://wordpress.org/plugins/featured-galleries/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Andy Mercer

    (@kelderic)

    That’s an interesting question, and I’m not sure. It’s certainly not something I’ve thought about, but I can see where it might be useful. It’ll be somewhat difficult though. You’ll need to register a second metabox.

    Maybe copy the metabox code, and append something like _one and _two to each one. Then you’ll need to make sure each one saves separate metadata. The gallery is stored in a single metadata piece, as a comma delimited string. It would be possible to store two pieces of metadata, one for each gallery.

    Thread Starter clazzid

    (@clazzid)

    Hey! thanks for the super quick response Andy!, gotcha, what i did was just copy the whole plugin and ran some auto-renaming on the functions and it all seems to work! haha, but I will look into the metabox file and metadata to make it a little cleaner.
    Thanks for the awesome pointers.
    And for the great little plugin!

    Plugin Author Andy Mercer

    (@kelderic)

    That sounds like it would work, definitely, though as you said, it could be cleaner.

    I’m glad the plugin has helped. Would appreciate a review/rating if you have a moment.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Second Instance in single post?’ is closed to new replies.