Sponsors Shortcode
Display sponsor logos with links. In its simplest form, parameters are not required.
[sponsors]
By default, all sponsors will be included. Change the limit
parameter to choose the number of sponsors to show. A value of -1
will show all.
The width
and height
parameters define the maximum size of sponsor logos in pixels, defaulting to 256
and 128
, respectively.
The orderby
parameter defines how to sort sponsors. By default, the plugin's global setting will be applied. Choose from menu_order
(menu order), date
(date), title
(name), and rand
(random order). Use order
to sort the sponsors in ASC
(ascending) or DESC
(descending) order. This will also default to the global setting.
The size
parameter can be used to display logos in a higher resolution. By default, the sportspress-fit-icon
size will apply, and can be changed to any size — even custom ones added by themes or plugins.
Args:
array( 'limit' => '-1', 'width' => '256', 'height' => '128', 'orderby' => 'menu_order', 'order' => 'ASC', 'size' => 'sportspress-fit-icon' )
Example usage:
[sponsors limit="3" width="320" height="320" orderby="rand" size="sportspress-fit-thumbnail"]
The Sponsors shortcode is only available to Club, League, or Agency License holders.