跳到内容

List Custom Post with featured image

v1.3.0

Vikas Sharma · 2017年2月11日 上架

Show any post type as a responsive gallery of featured images and titles, with pagination, anywhere via shortcode.

正在使用
10+
评分
5.0 / 5
累计下载
2,940
最近更新
2026年11月17日
3 条评价需要 WordPress 5.0+已测试到 7.1.5PHP 7.4+

贡献者

截图

Gallery page in the front-end.
Gallery page in the front-end.
Showing shortcode on plugin section back-end.
Showing shortcode on plugin section back-end.
Using shortcode on back-end & same as its working with phpcode using do_shortcode().
Using shortcode on back-end & same as its working with phpcode using do_shortcode().

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"]' ); ?>

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums