Patron post list

Block options

(Coming soon)

Shortcode options

You can also use the [patronstips_patron_posts] shortcode to display a custom list of content and use this table to configure it:

AttributeExpected value
typesThe desired post types (comma separated). Possible values: post, page, attachment or product (with WooCommerce). Default: post.
categoriesPost categories ID(s) or Slug(s) (comma separated) to display.
tagsPost tags ID(s) or Slug(s) (comma separated) to display.
cat_and_tagIf both categories and tags are specified, set this parameter to 1 to display only posts that have both one of the desired categories and one the desired tags.
restrictedSet it to 1 to display posts that are part of a restricted category / tag only. Set it to 0 to display not restricted posts only. Leave it empty to display both.
gray_outSet it to 1 to gray out restricted posts that have not been unlocked, or 0 to display locked posts normally. Default: 1.
fromDate from which to include posts (YYYY-MM-DD HH:mm:ss format, or PHP relative date format). Default is your patronage page launch date, you can set it in Patrons Tips > Settings > General tab.
toDate until which to include posts (YYYY-MM-DD HH:mm:ss format, or PHP relative date format).
order_bySort the post list by parameters (comma separated). Possible values: post_date, post_modified, post_name, post_title, post_content, post_exerpt, post_type, post_author. Default: post_date.
orderPossible values are desc (descending: highest to lowest) or asc (ascending: lowest to highest). Designates the ascending or descending order of the “order_by” parameter. You must specify the “order_by” parameter (see above). Default: desc.
per_pageSet the number of posts (integer) you want to display before “Load more”. Default: 12.
image_onlySet it to 1 to display only the post image, so the post list will look like an image gallery. Default: 0.
image_sizeSet the desired image size: full, large, medium, thumbnail. Default: medium / full if image_only is set to 1.
no_linkSet it to 1 to display a post list without links to the posts. Default: 0.

Shortcode examples

Display a list of the 4 most recent posts in the “Comics” category.

[patronstips_patron_list categories="comics" per_page="4"]

Display a list of restricted posts published within this month.

[patronstips_patron_list restricted="1" from="first day of this month"]

Leave a Comment

Scroll to Top