EB Custom Shortcodes
The EB Custom Shortcodes WordPress Plugin is designed for use with themes created specifically for Electric Bricks clients. It’s primary purpose is to provide additional shortcodes that allow for the display and formatting of various items on a site. Here is a list of the current shortcodes with a description of their functionality and their options.
eb-recent-posts
This allows you to display a configurable number of links to recent blog posts. There are several attributes you can use to customize the output.
Usage:
[eb-recent-posts
]
- can be inserted into any page, post, or text widget
- will retrieve the last 10 blog post titles as links and show their publication dates
Attributes:
This plugin can be customized in several ways by overriding the default attributes.
numberposts
- the number of posts to display
- default value: 10
showdate
- whether or not to show the publish date
- default value: TRUE
- set as bit value: TRUE=1, FALSE=0
showexcerpt
- whether or not to show the post’s excerpt
- the post must actually have an excerpt for one to show
- default value: FALSE
- set as bit value: TRUE=1, FALSE=0
Examples:
[eb-recent-posts
]
- Search Engine Optimization 101 – Keyword Research - Tuesday, February 9th
- Web Content Copywriting for Higher Conversion Rates - Tuesday, January 12th
- Goodbye 2020! - Thursday, December 31st
- Happy Holidays & a VERY Happy New Year from Electric Bricks - Wednesday, December 23rd
- Happy Thanksgiving from Electric Bricks - Wednesday, November 25th
- E-Commerce Website Development – Bring Your Online Store to Life - Friday, November 6th
- Responsive Web Design With Advanced UI Functionality - Thursday, September 24th
- Web Design the Right Way - Tuesday, September 22nd
- Site Development Featuring Location-Based Search - Thursday, September 10th
- Web Design With Advanced Database Features - Tuesday, September 1st
[eb-recent-posts numberposts=3
]
- Goodbye 2020! - Thursday, December 31st
- Happy Holidays & a VERY Happy New Year from Electric Bricks - Wednesday, December 23rd
- Happy Thanksgiving from Electric Bricks - Wednesday, November 25th
[eb-recent-posts numberposts=2 showdate=0
]
[eb-recent-posts numberposts=3 showexcerpt=1
]
- Goodbye 2020! - Thursday, December 31st
- Happy Holidays & a VERY Happy New Year from Electric Bricks - Wednesday, December 23rd
- Happy Thanksgiving from Electric Bricks - Wednesday, November 25th
[eb-recent-posts numberposts=4 showdate=0 showexcerpt=1
]
- Goodbye 2020!
- Happy Holidays & a VERY Happy New Year from Electric Bricks
- Happy Thanksgiving from Electric Bricks
- E-Commerce Website Development – Bring Your Online Store to Life