Cette page est également disponible en Français Français

WP Plugin Info Card displays plugins & themes data in a beautiful box with a smooth rotation effect using WP Plugin & Theme APIs. Dashboard widget included. See example below!

 

How does it works?

WP Plugin Info Card lets you display plugins & themes identity cards in a beautiful box with a smooth 3D rotation effect, or in a more large and responsive layout.
It uses WordPress.org plugins API & themes API to fetch data. All you need to do is provide a valid plugin/theme ID (slug name), and then insert the shortcode in any page to make it work at once!

This plugin is very light and includes scripts and CSS only if and when required (you can force scripts enqueuing in admin settings). The shortcode may be added anywhere shortcodes are supported within your theme.
The plugin also uses WordPress transients to store data returned by the API for 12 hours (720min by default), so your page loading time will not be increased due to too many requests.

This plugin uses the TinyMCE API to improve UI and make inserting shortcodes easier!

TinyMCE-shortcode-ui-plugin-info-card-button

 

The dashboard widget is very easy to set up: you simply add as many plugins and themes as you want in the admin page and they become visible in your dashboard. Fields are added on-the-fly and are sortable via drag-and-drop.

It is perfect to keep track of your own plugins!

wp-plugin-info-card-for-wordpress-options      

 

Please ask for help or report bugs if anything goes wrong. It is the best way to make the community benefit!

Languages: Also available in French. Become a translator and send me you translation! Contact-me

 


Shortcode parameters

  • type: plugin, theme – (default: plugin)
  • slug: plugin slug name – Please refer to the plugin URL on wordpress.org to determine its slug. Eg: https://wordpress.org/plugins/THE-SLUG/
  • layout: template layout to use – Default is “card” so you may leave this parameter empty. Available layouts are: card, large & wordpress (default: card)
  • scheme: card color scheme: scheme1 through scheme10 (default: default color scheme defined in admin)
  • image: Image URL to override default WP logo (default: empty)
  • align: center, left, right (default: empty)
  • containerid: custom div id, may be used for anchor (default: wp-pic-PLUGIN-NAME)
  • margin: custom container margin – eg: “15px 0” (default: empty)
  • clear: clear float before or after the card: before, after (default: empty
  • expiration: cache duration in minutes – numeric format only (default: 720)
  • ajax:  load the plugin data asynchronously with AJAX: yes, no (default: no)
  • custom: value to display: (default: empty)
    •     For plugins: url, name, icons, banners, version, author, requires, rating, num_ratings, downloaded, last_updated, download_link
    •     For themes: url, name, version, author, screenshot_url, rating, num_ratings, downloaded, last_updated, homepage, download_link

Caches (transients) are purged weeks (since 1.5) thanks to a cron job to help you keeping your DB clean.

Use the WP Query shortcode to perform custom query and retrieve a list of plugins or themes !

 


Basic example

The slug is the only required parameter for plugin. You have to set the “type” parameter for themes : type=”theme”

Note : you can also add the type=”plugin” parameter for a better homogeneity.

 


Advanced examples

You may provide a custom cache duration by specify the “expiration” parameter.

Note: You can set the parameter expiration to 0 (no expire).

 

You may provide a custom plugin image URL for the front rounded image (175px X 175px) or for themes (280px X 210px). You can also overload your default color scheme with the “scheme” parameter.

 

Use the large layout instead of the default card one. (see changelog above for more tweaks)

 

You may provide a list of slugs (comma-separated) in your shortcode slug parameter, WPPIC will randomly choose one item from the list on each page refresh.

 

The “custom” parameter supplants the others (except the “slug” and the “expiration”) and only returns the value you required.

 

Another example with custom parameters :

Will display : WP Plugin Info Card has been downloaded 5,682 times!

 


Demonstration

 

 

 

 

 

 

 


Other features

  • You can provide a list of slugs (comma-separated) in your shortcode slug parameter, WPPIC will randomly choose one item from the list on each page refresh.
  • You cane asily overload the plugin rendering. You need to create a new “wppic-templates” folder into your theme folder, then copy the template you want to overload from the WP Plugin Info Card “wppic-templates” folder.
  • You can create your own template file. You need to create a new “wppic-templates” folder into your theme folder, then copy the template file “wppic-template-plugin-large.php” or “wppic-template-theme-large.php” from the WP Plugin Info Card ‘/wppic-templates’ folder. Rename the file as “wppic-template-plugin-NEWTEMPLATE.php” or “wppic-template-theme-NEWTEMPLATE.php”, edit it as you go, and add your own CSS rules. Finally, call your new template by adding the following parameter in your shortcode: layout=”NEWTEMPLATE”

 


Installation

1. Upload and activate the plugin (or install it through the WP admin console)
2. Click on the “WP Plugin Info Card” sub-menu
3. Follow instructions, every option is documented 😉

Supported languages


Brice Capobianco

WordPress addict and self-taught. I love to learn and to create, then to share…
Founder of b-website.com