![](https://i-blog.csdnimg.cn/blog_migrate/19905af731df696922716f19d9ae16fc.png)
instagram在中国
Instagram is a cool photo sharing app that allows you to apply digital filters to your pictures. A lot of people use it to share their pictures with family and friends. More and more businesses have started using Instagram along with Pinterest to share their photos with their users. Recently, one of our users asked how to add their Instagram photos in WordPress? In WordPress 3.5, native oEmbed support for Instagram was added in the core. This means that you can just copy and paste the URL of an Instagram photo page, and it will automatically embed that image into your WordPress or page. But what if you want add an Instagram widget in your WordPress sidebar? In this article, we will show you how to display Instagram photos in your WordPress sidebar widget.
Instagram是一个很酷的照片共享应用程序,可让您将数字滤镜应用于照片。 很多人使用它与家人和朋友分享他们的照片。 越来越多的企业已经开始使用Instagram和Pinterest来与用户分享他们的照片。 最近,我们的一位用户问如何在WordPress中添加自己的Instagram照片? 在WordPress 3.5中 ,在核心中添加了对Instagram本机oEmbed支持。 这意味着您只需复制并粘贴Instagram照片页面的URL,它将自动将该图像嵌入到WordPress或页面中。 但是,如果要在WordPress边栏中添加Instagram小部件怎么办? 在本文中,我们将向您展示如何在WordPress侧边栏小部件中显示Instagram照片。
![Instagram](https://i-blog.csdnimg.cn/blog_migrate/abb69bc301897a428a2c67ef3edd9cf5.png)
设置Simply Instagram (Setting up Simply Instagram)
First thing you need to do is install and activate the Simply Instagram plugin. Upon activation, the plugin will show you a notification, asking you to authorize Simply Instagram plugin access to your Instagram account. Click on the authorize link.
您需要做的第一件事是安装并激活Simply Instagram插件。 激活后,该插件将向您显示通知,要求您授权Simply Instagram插件访问您的Instagram帐户。 单击授权链接。
![Authorize Simply Instagram to access your instagram account](https://i-blog.csdnimg.cn/blog_migrate/b510fb1fdee5b095f6ed0dc4a6065fd3.png)
On the next screen you will see a login button next to the Instagram logo. Click on login button, and it will take you to Instagram website where you can provide your username and password to give Simply Instagram access to your account.
在下一个屏幕上,您将在Instagram徽标旁边看到一个登录按钮。 单击登录按钮,它将带您到Instagram网站,您可以在其中提供您的用户名和密码,以使Simply Instagram可以访问您的帐户。
![Authorize Simply Instagram Authorize Simply Instagram](https://i-blog.csdnimg.cn/blog_migrate/64640d54df7714ff752581b6f6083317.png)
After the authorization you will be redirected back to Simply Instagram settings page in your WordPress site.
授权后,您将被重定向回WordPress网站中的Simply Instagram设置页面。
使用Simply Instagram (Using Simply Instagram)
Using Simply Instagram is fairly easy. The plugin comes with four built-in widgets which you can drag and drop to your WordPress sidebar or widget areas.
使用Simply Instagram很简单。 该插件带有四个内置小部件,您可以将其拖放到WordPress侧边栏或小部件区域。
![Instagram widgets for your WordPress sidebar Instagram widgets for your WordPress sidebar](https://i-blog.csdnimg.cn/blog_migrate/fecfc3fb962ca8487653da3c01fa5980.png)
- Recent Media Widget 最近的媒体小部件
- User Info Widget 用户信息小部件
- Latest Feed Widget 最新的Feed小部件
- Currently Popular widget 当前流行的小部件
Each widget comes equipped with configuration options of its own.
每个小部件都配备有自己的配置选项。
![Configuration options for Instagram widgets Configuration options for instagram widgets](https://i-blog.csdnimg.cn/blog_migrate/c193b71fa3d663367660f83bf43dcb71.png)
Simply Instagram also comes with shortcode support, so you can share your Instagram photos in WordPress posts or pages in a gallery style format. Go to Settings » Simply Instagram to find a shortcode generator.
简而言之,Instagram还提供短码支持,因此您可以以WordPress帖子或页面以画廊样式格式共享Instagram照片。 转到设置»仅Instagram,即可找到一个短代码生成器。
![Shortcode generator for Simply Instagram plugin Shortcode generator for Simply Instagram plugin](https://i-blog.csdnimg.cn/blog_migrate/337e85e4a500937075ad7e4997dd6fe7.png)
配置Simply Instagram (Configuring Simply Instagram)
Simply instagram also provides you option to configure the look and feel of Instagram photos on your site. On the settings page, you can set the shortcode configuration options. Remember that these options are just for photos displayed using shortcode. Instagram widgets have their own options which can be configured from the Widgets panel.
只需instagram,您还可以选择在您的网站上配置Instagram照片的外观。 在设置页面上,您可以设置简码配置选项。 请记住,这些选项仅适用于使用简码显示的照片。 Instagram窗口小部件具有其自己的选项,可以从“窗口小部件”面板进行配置。
![Instagram shortcode settings Instagram shortcode settings](https://i-blog.csdnimg.cn/blog_migrate/2c4fc28cb9b8d43701945a04fc1c70ac.png)
To display your Instagram photos, Simply Instagram comes packed with a jQuery light box plugin called prettyPhoto. It is used to display your Instagram photos in full screen slideshow view. You can adjust the prettyPhoto options from the settings page as well.
为了显示您的Instagram照片,Simply Instagram随附了一个名为prettyPhoto的jQuery灯箱插件。 它用于以全屏幻灯片视图显示您的Instagram照片。 您也可以从设置页面调整prettyPhoto选项。
![PrettyPhoto jQuery lightbox plugin settings for simply instagram PrettyPhoto jQuery lightbox plugin settings for simply instagram](https://i-blog.csdnimg.cn/blog_migrate/34c720d663736c75e6a14f1274d0fd17.png)
We hope that this article helped you add Instagram photos in your WordPress sidebar widget. Do you use Instagram for your business? Do you display your Instagram photos on your WordPress site? Let us know by leaving a comment below.
我们希望本文能帮助您在WordPress侧边栏小部件中添加Instagram照片。 您是否使用Instagram开展业务? 您是否在WordPress网站上显示Instagram照片? 让我们在下面留下评论。
翻译自: https://www.wpbeginner.com/plugins/how-to-display-instagram-photos-in-wordpress-sidebar-widget/
instagram在中国