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:
| Attribute | Expected value |
|---|---|
| types | The desired post types (comma separated). Possible values: post, page, attachment or product (with WooCommerce). Default: post. |
| categories | Post categories ID(s) or Slug(s) (comma separated) to display. |
| tags | Post tags ID(s) or Slug(s) (comma separated) to display. |
| cat_and_tag | If 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. |
| restricted | Set 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_out | Set it to 1 to gray out restricted posts that have not been unlocked, or 0 to display locked posts normally. Default: 1. |
| from | Date 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. |
| to | Date until which to include posts (YYYY-MM-DD HH:mm:ss format, or PHP relative date format). |
| order_by | Sort 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. |
| order | Possible 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_page | Set the number of posts (integer) you want to display before “Load more”. Default: 12. |
| image_only | Set it to 1 to display only the post image, so the post list will look like an image gallery. Default: 0. |
| image_size | Set the desired image size: full, large, medium, thumbnail. Default: medium / full if image_only is set to 1. |
| no_link | Set 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"]
