Easily integrate plugin information from WordPress.org with plugin cards
With the Plugin Cards plugin, the information can be displayed in WordPress Card Style for every plugin hosted on WordPress.org. I find the plugin extremely practical and therefore use it for all plugin reviews on this blog.
As in the official plugin directory, the plugin shows the name, author and download link of the plugin. In addition, of course, the meta information such as user ratings, active installations and the last update of the plugin.
Example of jetpack
functionality
The plugin can be integrated on all pages and contributions with the shortcode [plugin_cards]
. The shortcode allows different attributes to display plugins with a certain slug, author, keyword or list.
[plugin_cards slug = "easy-digital-downloads"] [plugin_cards author = "markjaquith"] [plugin_cards user = "matt"] // Displays user's favorites list [plugin_cards tag = "slider"] [plugin_cards browse = "popular"] [plugin_cards browse = "new"] [plugin_cards browse = "beta"] [plugin_cards search = "gallery"]
The plugin accesses the relevant data via the WordPress.org plugin API. The plugin information from WordPress.org is cached in order to minimize frequent requests and not to impair the performance of the site.
Download the plugin
The plugin is available for download on WordPress.org and is documented there in detail. The development takes place on Github .
Such boxes for premium themes and plugins would be interesting. For example, I plan to write about certain premium products in the future. Do you have a tip?
Perhaps you could do this yourself as a shortcode (with image, description, price, link ...) attributes. Maybe you would like to write about creating shortcodes? 😀
- Pascal
Hello Pascal,
Don't know a plugin for something like that, sorry. The data of the plugins are accessed directly via the WordPress.org API. Of course, this doesn't work with premium plugins, because there is no uniform interface.
But the idea with the shortcode works. The plugin information can be passed as shortcode parameters, and the shortcode generates the box from it. In the end, only the Plugin Cards plugin has to be modified so that the plugin information can be entered as a shortcode parameter instead of being fetched via the API. The rest is already there.
I'll write a tutorial about shortcodes on my to-do list, I might get it in the next few weeks under 🙂
LG,
Brian
Thank you! At least for the Envato network (Themeforest, Codecanyon, ...) there is something like that, but it looks kind of stupid.
I will work on the idea with the shortcode myself. Of course, I am also looking forward to possible tutorials on the subject of shortcodes on your blog!
- Pascal
Yes, that's right. Envato also has its own API that makes this possible. Shortcode tutorial is coming 🙂