8.9 [lcw_post_grid]
Display restricted posts for a logged in user. it's available for free and paid both version.
The LCW Post Grid shortcode allows you to display a customizable grid of restricted posts with filtering options, including post type, taxonomy, terms, and user-based access restrictions. The shortcode also supports setting the number of columns and customizing the "Read More" text.
Shortcode Usage
You can insert the shortcode anywhere in your WordPress content (pages, posts, widgets) using:
[lcw_post_grid post_type="post" taxonomy="category" terms="news,updates" columns="3" posts_per_page="99" read_more_text="Read More"]
Shortcode Attributes
The shortcode supports the following attributes:
post_type
Specify one or more post types (comma-separated)
"post"
post,page,custom_type
taxonomy
The taxonomy name (e.g., category
, custom_taxonomy
)
""
(empty)
category
or product_cat
terms
Comma-separated list of term slugs or IDs to filter posts by taxonomy
""
(empty)
Category/ Term ID: 1
, 2
, 3
, 4...
post__in
display posts with only these IDs
(empty)
post/ custom post IDs: 1
, 2
, 3
, 4...
post__not_in
remove specific posts/ custom posts by IDs
(empty)
post/ custom post IDs: 1
, 2
, 3
, 4...
columns
Number of columns in the grid (1-5)
3
1
, 2
, 4
, 5
posts_per_page
Number of posts to display
6
8
, 10
, 12
read_more_text
Custom text for the "Read More" button
"Read More"
"Discover More"
Last updated