You’ve probably seen iOS app card display on tech sites. Recently one of our readers asked if it was possible to display WordPress plugins and theme information detail cards. In this article, we will show you how to easily display plugin and theme information on your WordPress site in beautiful info cards that include rating, download count, last update date, icons, and more.
您可能已经在技术网站上看到了iOS应用卡的显示。 最近,我们的一位读者询问是否可以显示WordPress插件和主题信息详细信息卡。 在本文中,我们将向您展示如何在精美的信息卡中轻松地在WordPress网站上显示插件和主题信息,其中包括评分,下载次数,最后更新日期,图标等。
First thing you need to do is install and activate the WP Plugin Info Card plugin. Upon activation, simply create a new post or edit an existing one.
您需要做的第一件事是安装并激活WP Plugin Info Card插件。 激活后,只需创建一个新帖子或编辑现有帖子即可。
On the post editor screen, you will notice a new plugin info card button.
在帖子编辑器屏幕上,您会注意到一个新的插件信息卡按钮。
Clicking on it will bring up the plugin’s shortcode generator popup.
单击它会弹出插件的简码生成器弹出窗口。
You will need to choose whether you want to fetch the information for a plugin or a theme. This plugin can only display information for plugins and themes that are hosted on the official WordPress.org site.
您将需要选择是要获取有关插件还是主题的信息。 此插件只能显示官方WordPress.org网站上托管的插件和主题的信息。
Next, you need to enter the plugin or theme’s URL slug.
接下来,您需要输入插件或主题的URL slug 。
You can get the URL slug by visiting the theme or plugin’s page on the WordPress directory.
您可以通过访问WordPress目录中的主题或插件页面来获取URL插件。
Among other options, you can choose plugin’s color scheme, info card alignment, custom image url, etc. Once you are satisfied with the settings, simply click on the OK button. This will insert the info card shortcode into your post editor.
在其他选项中,您可以选择插件的配色方案,信息卡对齐方式,自定义图像url等。对设置满意后,只需单击“确定”按钮。 这会将信息卡短代码插入您的帖子编辑器。
You can now preview your post in a web browser to see the info card in action.
现在,您可以在网络浏览器中预览帖子,以查看正在使用的信息卡。
手动添加插件信息卡简码 (Manually Adding The Plugin Info Card Shortcode)
Some users would find it easier to manually add shortcode on their own. Here is the basic shortcode:
一些用户会发现,自己手动添加简码会更容易。 这是基本的简码:
[wp-pic slug="floating-social-bar"]
[wp-pic slug="floating-social-bar"]
[wp-pic type="theme" slug="slipstream"]
[wp-pic type="theme" slug="slipstream"]
For the full list of shortcode parameters please see the plugins page.
有关简码参数的完整列表,请参见插件页面。
We hope this article helped you display plugin and theme information on your WordPress site in beautiful info boxes. You may also want to check out our expert pick of 20 must have WordPress plugins for 2015.
我们希望本文能帮助您在漂亮的信息框中显示WordPress网站上的插件和主题信息。 您可能还需要查看我们的专家精选,其中20个必须包含2015年的WordPress插件 。
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Google+.
如果您喜欢这篇文章,请订阅我们的YouTube频道 WordPress视频教程。 您也可以在Twitter和Google+上找到我们。
翻译自: https://www.wpbeginner.com/plugins/how-to-display-plugin-and-theme-information-in-wordpress/