
Have you ever added a Featured Image to a post and thought to yourself, “I wish I could add more than one image this way”? Well, now you can. Featured Galleries mirrors the Featured Images functionality of WordPress. The only difference is that posts get an entire gallery rather than just a single image. These galleries behave almost exactly like Featured Images, and make use of WordPress’s built in Media Manager. Users can select images, define the order, and save the gallery, all through a simple drag-n-drop interface.
Note: This plugin DOES NOT HANDLE THE FRONTEND HTML CREATION. That is left for themes to handle, to allow for maximum flexibility. Featured Galleries just handles the backend/admin interface for creating featured galleries and storing them as metadata. You will need to integrate this into your theme, or use a theme with prebuilt integration.
For more information, see GitHub Wiki.
I’ve tried to make this as intuitive as possible. Themes can integrate Featured Galleries in the same way they integrate Featured Images. Inside any template file where the gallery should appear, the theme will call the get_post_gallery_ids() function. As long as it is used inside the loop, the function doesn’t need any parameters. By default, it will return an array of image IDs.
Set inside the Loop. This returns all images in the Featured Gallery, as an array, then loops through to display each using an HTML <img> tag.
$galleryArray = get_post_gallery_ids(); foreach ( $galleryArray as $id ) { echo '<img src="' . wp_get_attachment_url( $id ) .'">'; } You can also customize the returned value from the function to suit your needs. See the full function documentation page for details.
The plugin comes with a filter to easily add Featured Galleries to custom post types. See the fg_post_types documentation page for details.
The media manager can be customized in sevearl ways. See the fg_show_sidebar and fg_use_legacy_selection filter documentation pages for details.
I’d love some help with internationalization. It was working at one point, but drivingralle did that code because I don’t really understand it, and I’m not sure it’s still working.
Starting from $0 per month.
Rating
Reviewers
20 reviews
Tags
Developed By
Andy Mercer
Quick & Easy
Common Ninja has a large selection of powerful Wordpress plugins that are easy to use, fully customizable, mobile-friendly and rich with features — so be sure to check them out!
Testimonial plugins for Wordpress
Galleries plugins for Wordpress
SEO plugins for Wordpress
Contact Form plugins for Wordpress
Forms plugins for Wordpress
Social Feeds plugins for Wordpress
Social Sharing plugins for Wordpress
Events Calendar plugins for Wordpress
Sliders plugins for Wordpress
Analytics plugins for Wordpress
Reviews plugins for Wordpress
Comments plugins for Wordpress
Portfolio plugins for Wordpress
Maps plugins for Wordpress
Security plugins for Wordpress
Translation plugins for Wordpress
Ads plugins for Wordpress
Video Player plugins for Wordpress
Music Player plugins for Wordpress
Backup plugins for Wordpress
Privacy plugins for Wordpress
Optimize plugins for Wordpress
Chat plugins for Wordpress
Countdown plugins for Wordpress
Email Marketing plugins for Wordpress
Tabs plugins for Wordpress
Membership plugins for Wordpress
popup plugins for Wordpress
SiteMap plugins for Wordpress
Payment plugins for Wordpress
Coming Soon plugins for Wordpress
Ecommerce plugins for Wordpress
Customer Support plugins for Wordpress
Inventory plugins for Wordpress
Video Player plugins for Wordpress
Testimonials plugins for Wordpress
Tabs plugins for Wordpress
Social Sharing plugins for Wordpress
Social Feeds plugins for Wordpress
Slider plugins for Wordpress
Reviews plugins for Wordpress
Portfolio plugins for Wordpress
Membership plugins for Wordpress
Forms plugins for Wordpress
Events Calendar plugins for Wordpress
Contact plugins for Wordpress
Comments plugins for Wordpress
Analytics plugins for Wordpress
Common Ninja Apps
Browse our extensive collection of compatible plugins, and easily embed them on any website, blog, online store, e-commerce platform, or site builder.
Add a logo slider to your site to showcase clients and partners, strengthen brand credibility, and build trust with new visitors.
Use a timeline widget to display events and milestones in chronological order with images and text so visitors understand your story clearly.
Verify visitor age with an age verification popup that helps you meet legal requirements, protect your business, and ensure responsible access.
Show Threads posts in a live feed that keeps content fresh, builds social proof, and helps visitors engage on your site.
Marketing button with text and an icon that highlights key offers, draws attention to promotions, and helps increase engagement and conversions.
Display and manage customer reviews from multiple platforms in one place to build trust and highlight brand credibility.
Use an event list to highlight upcoming activities, improve visibility, and help visitors discover events that increase attendance and engagement.
Use a news ticker to display headlines and updates that highlight key information and keep users informed in real time.
Add interactive two-sided cards with flip effects to present front and back content in a compact, engaging format.
Show TikTok videos with a TikTok carousel that arranges clips in a smooth, customizable layout to boost engagement and keep visitors watching.
Collect and manage donations securely with a customizable online donation form that supports Stripe or PayPal and helps increase contributions.
Use tilted image effects to rotate visuals, add creative style, and keep visitors engaged with dynamic images on your site.
More plugins
The Common Ninja Search Engine platform helps website builders find the best site widgets, apps, plugins, tools, add-ons, and extensions! Compatible with all major website building platforms - big or small - and updated regularly, our Search Engine tool provides you with the business tools your site needs!
