Social Gallery Block is a powerful and lightweight WordPress plugin that allows you to embed your social media feeds into your website using beautiful grid layouts. It supports Instagram, Twitter (X), and RSS feeds (perfect for Facebook pages).
- Multi-Platform Support:
- Instagram: Embed public profile grids.
- Twitter (X): Showcase latest media from any public X account.
- RSS / Facebook: Use any RSS feed (or FB-to-RSS bridge) to display a media gallery.
- Gutenberg Ready: Dedicated blocks for each platform with real-time previews.
- Shortcode Support: Use
[instagram_post_grid]for Instagram anywhere. - No App Required: Works with public accounts without needing to create complex API Apps.
- Performance Focused: Built-in 1-hour transient caching to minimize API calls and speed up your site.
- Dynamic Rendering: Galleries update automatically on the frontend without needing to re-save posts.
- Privacy & Security: Uses a server-side proxy for images to avoid CORS issues and protect user privacy.
- In the editor, click the + icon.
- Search for "Social Gallery", "Instagram", "Twitter", or "RSS Gallery".
- Add the desired block and configure the settings in the sidebar.
Simply paste the following shortcode into any post, page, or widget:
[instagram_post_grid username="instagram" columns="4" count="12"]
username: (Required) Your Instagram handle.columns: Number of columns (Default:4).count: Number of posts to display (Default:12).cropped:yesornoto square-crop images (Default:yes).
This project uses @wordpress/scripts for the build process.
# Install dependencies
npm install
# Build production assets
npm run build
# Start development mode
npm startWelcome! Feel free to open issues or submit pull requests to help make this plugin better.
Ronak Vanpariya - @VanpariyaRonakJ

