Title: Second Instance in single post?
Last modified: August 31, 2016

---

# Second Instance in single post?

 *  Resolved [clazzid](https://wordpress.org/support/users/clazzid/)
 * (@clazzid)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/second-instance-in-single-post/)
 * 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/](https://wordpress.org/plugins/featured-galleries/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Andy Mercer](https://wordpress.org/support/users/kelderic/)
 * (@kelderic)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/second-instance-in-single-post/#post-6992260)
 * 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](https://wordpress.org/support/users/clazzid/)
 * (@clazzid)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/second-instance-in-single-post/#post-6992261)
 * 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](https://wordpress.org/support/users/kelderic/)
 * (@kelderic)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/second-instance-in-single-post/#post-6992444)
 * 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.

 * ![](https://ps.w.org/featured-galleries/assets/icon-256x256.png?rev=1073825)
 * [Featured Galleries](https://wordpress.org/plugins/featured-galleries/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/featured-galleries/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/featured-galleries/)
 * [Active Topics](https://wordpress.org/support/plugin/featured-galleries/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/featured-galleries/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/featured-galleries/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Andy Mercer](https://wordpress.org/support/users/kelderic/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/second-instance-in-single-post/#post-6992444)
 * Status: resolved