PostLister Shortcodes
- Code
- Type
- Value
- Description
- author_format
- string
- f
- Show author first name only
- author_format
- string
- l
- Show author last name only
- author_format
- string
- fl
- Show author first name last name
- author_format
- string
- lf
- Show author last name, first name
- author_format
- string
- u
- Show author user name
- author_prefix
- string
- {any value}
- Render before author name
- categories_prefix
- string
- {any value}
- Rendered before list of categories
- content_prefix
- string
- {any value}
- Rendered before post content
- count
- int
- {count}
- Show this number of posts
- date_format
- string
- {format}
- Subset of valid PHP date format string (see note)
- date_prefix
- string
- {any value}
- Rendered before date
- excerpt_prefix
- string
- {any value}
- Rendered before post excerpt
- fieldset
- string
- TRUE
- Generate fieldset with all divs enclosed
- id
- int(s)
- {int[,int...]}
- One or more comma separated id values
- index_type
- string
- list
- Display index as a list
- index_type
- string
- ddl
- Display index as a drop-down list
- index_type
- string
- cbl
- Display index as a check-box list
- index_prefix
- string
- {any value}
- Appears at top of index
- label
- string
- {any value}
- Used to identify this instance
- list_prefix
- string
- {any value}
- Appears at top of list of post titles
- modified_prefix
- string
- {any value}
- Rendered before modified_date
- parent_id
- int
- {parent_id}
- If not -1, show only categories or tags with this parent id
- post_prefix
- string
- {any value}
- Rendered before post
- post_suffix
- string
- {any value}
- Rendered after post
- rss_category
- string
- {category}
- select posts from this RSS feed category
- rss_source
- url
- {valid url}
- select posts from this RSS feed url
- select
- string
- author
- Show posts for selected author
- select
- string
- authors
- Show all authors and list posts by each
- select
- string
- category
- Show posts for selected category
- select
- string
- categories
- Show all categories and list posts by each
- select
- string
- clear_cache
- Clear all data in Local Storage
- select
- string
- date
- Show posts for selected year-month
- select
- string
- dates
- Show dates and list posts each yyyy-mm
- select
- string
- recent
- Show most recent posts
- select
- string
- rss
- Show posts from RSS feed
- select
- string
- storage_report
- Show local storage contents
- select
- string
- tag
- Show posts for selected tag
- select
- string
- tags
- Show all tags and list posts for each
- separator
- string
- {html}
- Any valid html string wrapped in [] and used to separate posts
- shortcodes
- bool
- TRUE
- Display list of plugin shortcodes
- show
- string
- title
- Show post titles in post panel
- show
- string
- author
- Show post author in post panel
- show
- string
- date_created
- Show post date created in post panel
- show
- string
- date_modified
- Show post date modified in post panel
- show
- string
- category
- Show post category in post panel
- show
- string
- id
- Show post id in post panel
- show
- string
- excerpt
- Show post excerpts in post panel
- show
- string
- post
- Show post body in post panel
- show_counts
- bool
- TRUE
- Show number of posts in index
- skip
- int
- {skip}
- Skip this number of posts
- slug
- string(s)
- {slug[,slug...]}
- One or more comma separated slug values
- title_prefix
- string
- {any value}
- Rendered before title
- verbose
- bool
- TRUE
- Show diagnostics on page
Examples
- Show posts by Bob Jones[postlister select=author slug="bob-jones"]
- Show most recent 4 posts in "elders" category[postlister select=category slug="elders" count=4]
- Selected categories using list as index selector with counts and index and list prefixes[postlister select=categories slug="press, recent-news, usa, guest-posts" count=4 index_type=list show_counts=true label="categories list" index_prefix="Select category:" list_prefix="Select Post Title:"]
- Show all posts in a fieldset with index as list[postlister select=categories fieldset label="All Categories" index_type=cbl show_counts show=excerpts]
Date Formats
Code
Description
y
2 digit year
Y
4 digit year
M
3 letter month name
m
2 digit month number
n
month number without leading zero
F
fully spelled out month name
w
numeric representation of day of week
l
fully spelled out day name
D
3 letter day name
d
day of month with leading zero
j
day of month without leading zero