List Custom Post with featured image
This plugin creates a responsive gallery of any public post type using a shortcode. Each item shows the featured image (or a placeholder when none is set) and the post title, linked to the post. Pagination is optional. Features Works with posts, pages and any public custom post type Responsive CSS G
About this tool.
This plugin creates a responsive gallery of any public post type using a shortcode. Each item shows the featured image (or a placeholder when none is set) and the post title, linked to the post. Pagination is optional.
Features
- Works with posts, pages and any public custom post type
- Responsive CSS Grid layout: 4 / 3 / 2 / 1 columns as the screen narrows
- Optional pagination that works with pretty and plain permalinks
- Placeholder image when a post has no featured image
- Templates can be overridden from your theme
- No jQuery, no external frameworks
Shortcode
[lcpostlist post_type="post" limit="4" order="ASC" pagination="off"]
Attributes:
- post_type – any public post type. Default post .
- limit – posts per page, 1 to 100. -1 means “as many as possible” and resolves to 100. Default 5 .
- order – ASC or DESC . Default DESC .
- pagination – on or off . Default on .
In a theme file:
<?php echo do_shortcode( '[lcpostlist post_type="post" limit="8"]' ); ?>
Screenshots & previews.
Getting started.
Use WordPress Add New Plugin feature, searching “List Custom Post with featured image”, or download the archive and:
- 01Unzip the archive on your computer
- 02Upload the list-custom-post-with-featured-image directory to the /wp-content/plugins/ directory