wp-pic
Use [wp-pic] to output a single plugin.
Last updated
Use [wp-pic] to output a single plugin.
Last updated
The wp-pic
shortcode can be used to display a single or multiple plugins. See below for the shortcode parameters.
Example shortcode:
Can be of type plugin
or theme
. Type plugin
is default.
The slug
(required) parameter can be a single or comma-separated string of plugin slugs.
Comma-separate the slugs to be in multi mode, which will output multiple plugins.
A slug can be set in the shortcode attributes to override the title.
Simply use the plugin or theme slug in the shortcode attributes.
Here's an example:
You can do the same for themes:
This must be set to true
if there are multiple slugs. The following extra attributes assist in multi
output:
cols (1-3)
col_gap - Gap in pixels between items
row_gap - Gap in pixels between rows
Default is “card” so you may leave this parameter empty. The default layout can be set in the admin settings.
Available layouts are:
card
large
flex
wordpress
ratings
Select a card color scheme. Available schemes are scheme1
through scheme14
. The default scheme can be set in the admin settings.
Designate an image that will take the place of a plugin's default banner.
Set the alignment of the info card. Values can be:
center
left
right
Set the container ID of the plugin wrapper.
The default is: default: wp-pic-PLUGIN-SLUG
.
Set the margin for the info card. The default is no margin.
Whether to clear the float of the container. Default is empty.
Choices are:
below
after
By default, the info card are cached at 720 seconds, so as to not ping the WordPress plugin API in excess.
You can change this expiration when outputting your cards.
Whether to load the plugin in via Ajax.
Choices are: yes
and no
.
Whether to output any strings associated with a plugin or theme.
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