WordPress plugin to show posts, pages or custom-post-types in grid / list cards, heroes, accordion or tabs via shortcode in bootScore theme.
- Demo and documentation: https://bootscore.me/documentation/bs-grid/
- Download latest release bs-grid-main.zip.
- In your admin panel, go to Plugins > and click the Add New button.
- Click Upload Plugin and Choose File, then select the Plugin's .zip file. Click Install Now.
- Click Activate to use your new Plugin right away.
Select template you want to use by replacing bs-*
placeholder in shortcode examples.
[bs-grid]
bs-grid
shows items in 4 (xxl), 3 (lg), 2 (md) and 1 (sm) column cards.bs-list
shows items in 1 column vertical cards (md) and flip into 1 column horizontal cards (lg).bs-hero
shows hero items with background-images.bs-accordion
shows items with full content in a Bootstrap accordion.bs-tabs
shows items with full content in Bootstrap tabs.
[bs-* type="post" category="cars, boats" order="ASC" orderby="date" posts="6"]
category=""
category-slug, multiple categories separated by commaorder=""
ASC or DESCorderby=""
date, title, or randposts=""
amount of posts
excerpt="false"
hide excerpttags="false"
hide tagscategories="false"
hide categories
[bs-* type="post" tax="post_tag" terms="bikes, motorbikes" order="DESC" orderby="date" posts="5"]
tax=""
taxonomy (post_tag)terms=""
tags-slug, multiple terms separated by commaorder=""
ASC or DESCorderby=""
date, title, or randposts=""
amount of posts
excerpt="false"
hide excerpttags="false"
hide tagscategories="false"
hide categories
[bs-* type="post" id="1, 15"]
id=""
post id, multiple ids separated by commaorder=""
ASC or DESCorderby=""
date, title, or rand
excerpt="false"
hide excerpttags="false"
hide tagscategories="false"
hide categories
[bs-* type="page" post_parent="21" order="ASC" orderby="title" posts="6"]
Showing child-pages in parent-page is very useful to avoid empty parent-pages.
post_parent=""
parent-page idorder=""
ASC or DESCorderby=""
date, title, or randposts=""
amount of pages
excerpt="false"
hide excerpt
[bs-* type="page" id="2, 25"]
id=""
page id, multiple ids separated by commaorder=""
ASC or DESCorderby=""
date, title, or rand
excerpt="false"
hide excerpt
[bs-* type="isotope" tax="isotope_category" terms="dogs, cats" order="DESC" orderby="date" posts="5"]
type=""
type of custom-post-typetax=""
taxonomyterms=""
terms-slug, multiple terms separated by commaorder=""
ASC or DESCorderby=""
date, title, or randposts=""
amount of custom-post-types
excerpt="false"
hide excerpt
[bs-* type="isotope" id="33, 31"]
id=""
custom-post-type's id, multiple ids separated by commaorder=""
ASC or DESCorderby=""
date, title, or rand
excerpt="false"
hide excerpt
Template files can be found within the /bs-grid-main/templates/ plugin directory.
Edit files in an upgrade-safe way using overrides. Copy the template into a directory within your theme named /bs-grid-main/ keeping the same file structure but removing the /templates/ subdirectory. Path must be /your-theme/bs-grid-main/[file].php.
The copied file will now override the bS Grid template file. Change cards, classes or HTML as you want.
sc-grid.php
sc-list.php
sc-hero.php
sc-accordion.php
sc-tabs.php
- bS Grid, MIT License https://github.com/bootscore/bs-grid/blob/main/LICENSE
- Plugin Update Checker, YahnisElsts, MIT License https://github.com/YahnisElsts/plugin-update-checker/blob/master/license.txt