外掛說明
Social Gallery Block is a lightweight and powerful WordPress plugin designed to showcase your Instagram content effortlessly. Unlike many other plugins, it doesn’t require you to create a complex Facebook or Instagram App to fetch public data.
Whether you are using the modern Gutenberg editor or the Classic editor, this plugin has you covered with its native block and versatile shortcode.
Key Features:
- Gutenberg Native: A dedicated “Social Gallery” block with live preview and easy customization.
- Versatile Shortcode: Use
[instagram_post_grid]in any post, page, or widget. - Performance First: Features built-in 1-hour transient caching to speed up your site and avoid Instagram rate-limiting.
- No App Hassle: Fetch public profile details without needing an Instagram API App.
- Interactive Grid: Images link directly to the original Instagram posts for better engagement.
- Privacy & Security: Uses a server-side proxy to serve images, preventing CORS/CORP issues and protecting your visitors’ privacy.
- Highly Customizable: Control columns, post counts, and image cropping directly from the editor or shortcode attributes.
Want to contribute?
Check out the project on GitHub: https://github.com/vanpariyar/gutenberg-instagram-post-grid/
Shortcode Usage
Display your grid anywhere with:
[instagram_post_grid username=”instagram” columns=”4″ count=”12″]
Available Attributes:
* username: (Required) Your Instagram username.
* columns: Number of columns (1-8).
* count: Number of posts to show (1-12).
* cropped: yes or no to toggle square cropping.
螢幕擷圖
適用於區塊編輯器
這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。
- Social Gallery Block Instagram Post Grid Block.
安裝方式
- Upload the
gutenberg-instagram-post-gridfolder to the/wp-content/plugins/directory, or install directly through the WordPress plugins screen. - Activate the plugin through the ‘Plugins’ screen in WordPress.
- Gutenberg: Search for the “Social Gallery” block in the editor.
- Shortcode: Use
[instagram_post_grid username="your_handle"]anywhere on your site.
常見問題集
-
Does this require an Instagram Access Token?
-
No! This plugin fetches data from public profiles using Instagram’s web API, so you don’t need to generate or maintain access tokens.
-
Can I use it on private accounts?
-
No, Instagram’s public API only allows fetching data from public profiles.
-
Why am I seeing a “Rate Limit” error?
-
Instagram limits the number of requests from a single IP. Our plugin uses caching to minimize these requests, but if you still see this, wait a few minutes and it should resolve itself.
使用者評論
參與者及開發者
變更記錄
2.1.0
- NEW: Added
[instagram_post_grid]shortcode support. - NEW: Images now link to original Instagram posts.
- NEW: Added 1-hour server-side caching for better performance.
- IMPROVED: Refined API headers to prevent 401/429 errors.
- IMPROVED: Better error reporting in the Gutenberg editor.
- FIX: Resolved image proxying and loading issues.
- CHORE: Updated metadata and documentation for WordPress.org submission.
2.1
- Fix the plugin name and working on gallery not showing
2.0
- Fix the gallery is not rendering after Update
1.8
- Minor Changes (Typo and Name Fix)
1.0
- Initial: First Version




