Created
March 16, 2012 20:09
-
-
Save fjarrett/2052339 to your computer and use it in GitHub Desktop.
Post List Shortcode Parameter Reference
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
partial // default: loop,post_list | |
wrap // default: true (boolean) | |
wrapper_class // class attribute for the <ul> element | |
post_status // default: publish | |
posts_per_page // default: Settings > Reading > Blog pages show at most | |
paged // default: paged (if shortcode is in a custom page template use paged="page") | |
offset // number of posts to displace | |
orderby // default: date | |
order // default: DESC | |
p // post ID | |
name // post slug | |
post__in // posts to retrieve (comma separated IDs) | |
post__not_in // posts to ignore (comma separated IDs) | |
year // 4 digit year | |
monthnum // 1-12 | |
w // 0-53 | |
day // 1-31 | |
hour // 0-23 | |
minute // 0-60 | |
second // 0-60 | |
author // author ID | |
author_name // author username | |
tag // tag slug (if separated by "+" the functionality becomes identical to tag_slug__and) | |
tag_id // tag ID | |
tag__and // posts that are tagged both x AND y (comma separated IDs) | |
tag__in // posts that are tagged x OR y (comma separated IDs) | |
tag__not_in // exclude posts with these tags (comma separated IDs) | |
tag_slug__and // posts that are tagged both x AND y (comma separated slugs) | |
tag_slug__in // posts that are tagged x OR y (comma separated slugs) | |
cat // category ID | |
category_name // category slug | |
category__and // posts that are in both categories x AND y (comma separated IDs) | |
category__in // posts that are in categories x OR y (comma separated IDs) | |
category__not_in // exclude posts from these categories (comma separated IDs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment