| 开发者 | zurtri |
|---|---|
| 更新时间 | 2026年8月13日 15:04 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[primo_list] shortcode.
Sponsor walls, partner logos, staff directories, product features: one
portable tool. No Custom Post Type UI, no ACF, no Bootstrap, no external
libraries, no tracking, no external HTTP calls.
Features
[primo_list] shortcode with category, id, layout, columns,
columns_mobile, headings, orderby, limit, lightbox, fit and
ratio attributes.orderby="menu_order" to have that
hand-set order override category weights entirely; otherwise it breaks ties
under the default weight ranking.ratio="1:1"); set ratio to any W:H, or ratio="auto" to size tiles to
each image. Choose fit="cover" (crop to fill, for art and photos) or fit="contain"
(letterbox the whole image with padding around it, for logos, never cropped).
The lightbox always shows the full, uncropped image.cover crop
keeps the important part of each image (e.g. a subject's head).columns sets the desktop count; grids
step down to two per row on a tablet and one on a phone. Set
columns_mobile="2" (or more) to keep several across on a phone; useful for
a logo wall, where one giant logo per row wastes the screen.lightbox="no".primo-list folder to /wp-content/plugins/, or install via
the Plugins screen.[primo_list category="your-category"] on any page.Use the category filter: [primo_list category="sponsors"]. Items sort by their
remaining categories' weight (e.g. tier), gold first.
Yes. Separate the slugs with commas:
[primo_list category="sponsors,partners"]. An item appears if it belongs to
any of them, and anything belonging to two of the categories you listed still
appears only once.
Ranking then works on the categories you did not name. Each item is placed by
whichever of its remaining categories carries the lowest weight, so a gold tier
still sorts above a bronze one across the combined list. Add headings="yes" to
group the result under those tier headings.
Add layout="wall", e.g. [primo_list category="sponsors" layout="wall"].
Go to Primo List → Items and drag it up by the handle in the Order column
(or type a number into the Order box under Page Attributes on the item editor,
lower numbers come first). That order breaks ties under the default weight
ranking. If the list has categories with different weights and you want your
manual order to win regardless, add orderby="menu_order" to the shortcode.
Dragging is available when the list is sorted by the Order column (the default)
and you are not searching. It works with the category filter, and reordering a
filtered view leaves items outside that filter where they are.
Yes, by default. Clicking an item's image opens the full-size version in an
overlay with prev/next navigation; no extra plugin needed. Turn it off for a
list with lightbox="no" (useful for logo walls that link out instead).
Yes, optionally. Enable Primo List → Settings → Enable item pages. Off by default; with it off, items appear only through the shortcode.
columns_mobile attribute sets how many tiles a grid shows per row on a
phone (up to 480px). Defaults to 1, so existing shortcodes are unchanged.
It is capped at columns, and a value of 2 or more also stops a tablet
dropping below it.columns="1" widened to two columns on a tablet.layout="wall"
list entirely, rather than leaving an empty tile in the wall.lightbox attribute, on by default)
with prev/next and keyboard navigation.orderby="menu_order" shortcode value.