Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save philipgledhill/c0a5c00a2e2a3ff97c6be280b4a6026c to your computer and use it in GitHub Desktop.
Save philipgledhill/c0a5c00a2e2a3ff97c6be280b4a6026c to your computer and use it in GitHub Desktop.
Shortcodes used on this blog post - Mai Building Blocks 1: Grid usage examples with additional parameters
Usage Examples...
show the 6 most recent blog posts...
[grid content="post" number="6"]
You can also show pages, instead of posts...
[grid content="page" number="6"]
Show three blog posts. The post title will display on top of the featured image...
[grid content="post" number="3" image_location="bg" align_text="center, middle"]
A typical 3 column blog listing...
[grid columns="3" show="image, title, excerpt, more_link"]
Extra Parameters you might want to use with the shortcodes above...
columns="4"
categories="16, 7"
exclude_categories="12, 56"
content_limit="50"
number="15"
show="image, title, date, author, content, excerpt, more_link, meta"
more_link_text="View More"
offset="2"
ids="345, 1320"
exclude="14, 1045, 99"
grid_title="Animals"
boxed="false"
align_text="center, middle"
slider="true"
exclude_current="true"
exclude_displayed="true"
gutter="lg"
ignore_sticky_posts="true"
image_align="right"
image_location="bg" Accepts "bg" (background image), "before_entry", "before_title", "after_title", and "before_content"
link="false"
more_link_text="View More"
tags="144, 213"
slidestoscroll="2"
speed="2000"
entry_class="text-xs"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment