Title: Latest Post Shortcode
Author: Iulia Cazan
Published: <strong>2015 年 3 月 11 日</strong>
Last modified: 2026 年 4 月 10 日

---

搜索插件

![](https://ps.w.org/latest-post-shortcode/assets/banner-772x250.png?rev=3117513)

![](https://ps.w.org/latest-post-shortcode/assets/icon-128x128.gif?rev=2355649)

# Latest Post Shortcode

 作者：[Iulia Cazan](https://profiles.wordpress.org/iulia-cazan/)

[下载](https://downloads.wordpress.org/plugin/latest-post-shortcode.14.2.3.zip)

 * [详情](https://cn.wordpress.org/plugins/latest-post-shortcode/#description)
 * [评价](https://cn.wordpress.org/plugins/latest-post-shortcode/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/latest-post-shortcode/#developers)

 [支持](https://wordpress.org/support/plugin/latest-post-shortcode/)

## 描述

The “Latest Post Shortcode” helps you display a list or grid of the posts or pages
in a page/sidebar, without having to code or know PHP. The output parameters are
extremely flexible, allowing you to choose the way your selected content will be
displayed. You can embed as many shortcodes in a page as you need, each shortcode
configured differently. The shortcode for displaying the latest posts is `[latest-
selected-content]` and can be generated very easily, the plugin will add a block
or a shortcode button in the editor area.

You can write your own “read more” replacement, choose whether to show/hide featured
images, you can even sort the items by several options, and paginate the output (
also AJAX pagination). This plugin works with any modern theme. When used with WordPress
>= 5.0 + Gutenberg, the plugin shortcode can be configured from the LPS block or
any Classic block, using the plugin button. The plugin can be used with Elementor
page builder.

### Demo

#### Usage example

Example of a simple grid with 4 cards per row, with AJAX pagination:
 [latest-selected-
content ver=”2″ perpage=”4″ showpages=”4″ display=”title,date,excerpt-small” titletag
=”h3″ chrlimit=”120″ more=”…” url=”yes” linktext=”Read more” image=”thumbnail” image_placeholder
=”auto” elements=”25″ image_opacity=”0.3″ css=”four-columns as-overlay content-end
pagination-space-between light tall” type=”post” status=”publish” orderby=”dateD”
show_extra=”ajax_pagination,pagination_all,trim,date_diff,category,hide_uncategorized_category,
oneterm_category,light_spinner”]

Example of a simple grid with 4 cards (2 per row), filtered by a category (sample
term):
 [latest-selected-content ver=”2″ limit=”4″ display=”title,content-small”
titletag=”h3″ chrlimit=”50″ image=”full” image_placeholder=”auto” elements=”0″ css
=”two-columns as-column has-shadow content-center” type=”post” taxonomy=”category”
term=”sample” orderby=”dateA”]

Starting with version 8.0.0, the plugin has a new UI and some new cool features.
With this version, the output of the shortcode can be configured also as a slider,
with responsive and different modes options. In this way, if you previously used
the Latest Post Shortcode Extension, this is no longer needed, the plugin handles
it all by itself.

Starting with version 7.0.0, the plugin implements new hooks that allow for defining
and managing your custom output, through your theme or your plugins. Check more 
hook details and code samples at https://iuliacazan.ro/latest-post-shortcode/.

### 钩子

 * Custom cards output filters: `lps/override_card_patterns`, `lps/override_card`,`
   lps/override_card_terms`, `lps/override_post_class`, `lps/override_card_display`,`
   lps/override_section_start`, `lps/override_section_end`
 * Pagination filters: `lps/override_pagination_display/first`, `lps/override_pagination_display/
   first_icon`, `lps/override_pagination_display/prev`, `lps/override_pagination_display/
   prev_icon`, `lps/override_pagination_display/next`, `lps/override_pagination_display/
   next_icon`, `lps/override_pagination_display/last`, `lps/override_pagination_display/
   last_icon`
 * Additional filters: `lps/filter_sites_list`, `lps/filter_statuses`, `lps/filter_front_end_statuses`,`
   lps/filter_types`, `lps/filter_taxonomies`, `lps/usable_taxonomies`, `lps/card_output_types`,`
   lps/remove_donate_info`, `lps/load_assets_on_page`, `lps/exclude_ids`, `lps/shortcode_arguments`,`
   lps/query_arguments`, `lps/before_check_posts`, `lps/remove_update_info`
 * Marked as deprecated: `lps_filter_tile_patterns`, `lps_filter_display_posts_list`,`
   lps_filter_remove_update_info`, `lps_filter_use_custom_section_markup_end`, `
   lps_filter_use_custom_section_markup_start`, `lps_filter_use_custom_tile_markup`,`
   lps_filter_exclude_previous_content_ids`, `lps_filter_use_custom_shortcode_arguments`,`
   lps_filter_use_custom_query_arguments`

## 屏幕截图

 * [[
 * Example of horizontal cards (info + image) with prev/next pagination.
 * [[
 * Example of 3 columns grid of overlay cards.
 * [[
 * Example of 4 columns grid of vertical cards.
 * [[
 * Example of 2 columns grid of horizontal cards (image + info).
 * [[
 * Example of horizontal cards (image + info) as an inline scroller.
 * [[
 * Example of slider with center mode.
 * [[
 * Example of 4 columns grid of overlay cards with masonry style.
 * [[
 * Example of 4 columns grid of vertical cards with inline filters from tags.

## 区块

该插件提供了 1 个区块.

 *   Latest Post Shortcode

## 常见问题

### How to use the block

You can use the LPS block in page/post content, in templates, and also in widgets
area. Click in the editor and type `/lps`, or `/latest`, or `/card`. In the list
of results you can see `Overlay Cards`, `Vertical Cards`, and `Horizontal Cards`.
Just pick one as a starting point, any of the initial variations you select can 
be configured later as you need.

### Where can I find the button for configuring the shortcode

The button for configuring the shortcode is displayed as an icon or as the LPS button,
depending on the mode you use when adding/updating content (the posts, pages, widgets,
etc.):

 * in the Visual mode of the editor, the button appears in the toolbar as an icon
 * in the Text mode of the editor, the button appears in the toolbar as the LPS 
   button

The button for the shortcode configurator can be used:

 * on adding/editing posts, pages, text widgets
 * in the Classic block for Gutenberg
 * for version >= 8.7 the LPS widget is available in Elementor

## 评价

![](https://secure.gravatar.com/avatar/55ebb85012f3e207fe3ae8d699a0b5cbc65fb9d0c47dc264db285fa123dace2b?
s=60&d=retro&r=g)

### 󠀁[Very customizable and great support](https://wordpress.org/support/topic/very-customizable-and-great-support-6/)󠁿

 [colts26](https://profiles.wordpress.org/colts26/) 2025 年 12 月 18 日

Had some issues with functionality and formatting so reached out for support, Iulia
responded within 24 hours and helped me configure it just the way I needed it. Highly
recommend you try this plugin out!

![](https://secure.gravatar.com/avatar/5e295de806378ba9f054f766ffb10c3cd16c6cb8135ead35b5b294f530ccf6d7?
s=60&d=retro&r=g)

### 󠀁[Perfect – does exactly what I was looking for](https://wordpress.org/support/topic/perfect-does-exactly-what-i-was-looking-for/)󠁿

 [willswing77](https://profiles.wordpress.org/willswing77/) 2025 年 9 月 17 日

No large Overhead and no dependencies. Well suited for my needs

![](https://secure.gravatar.com/avatar/8310605bedc7bc26347cb3d2afb0f3f21e5debab7c665957284ab0f26f5d8101?
s=60&d=retro&r=g)

### 󠀁[Excelente PlugIins para mostrar los post en cualquier parte de mi sitio web](https://wordpress.org/support/topic/excelente-plugiins-para-mostrar-los-post-en-cualquier-parte-de-mi-sitio-web/)󠁿

 [Jorge Gutierrez FP](https://profiles.wordpress.org/jorgesoporteit/) 2024 年 9 
月 8 日

Excelente PlugIins para mostrar los post en cualquier parte de mi sitio web, excelente,
me evito un quebradero de cabeza. Muchas gracias por programar este tipo de plugin.
Un saludos desde Venezuela.

![](https://secure.gravatar.com/avatar/ab41081f5d25b2a59fbd0f795bc618efb03dcb21244e7e4725f480042508c1e9?
s=60&d=retro&r=g)

### 󠀁[Excellent plugin and support](https://wordpress.org/support/topic/excellent-plugin-and-support-595/)󠁿

 [lklawless](https://profiles.wordpress.org/lklawless/) 2024 年 9 月 4 日

Lots of options to fit different needs. I had some trouble with the vertical spacing
but Iulia very kindly spent time figuring out how to fix my theme’s css to make 
it work and now it’s just perfect. Thank you!

![](https://secure.gravatar.com/avatar/18f194103ad17247e4ae81a6d3d0680fb83dd0db8a59e94c74a928896f618f4b?
s=60&d=retro&r=g)

### 󠀁[Excellent plugin](https://wordpress.org/support/topic/excellent-plugin-8956/)󠁿

 [sunshinedaysagain](https://profiles.wordpress.org/sunshinedaysagain/) 2023 年 
12 月 25 日

Thanks for adding such a good plugin to this library – it offers great flexibility
and has given me a real boost in getting started – is really good for a beginner
like myself! A brilliant job done with this!

![](https://secure.gravatar.com/avatar/5b50fe8e56e0926fec3033de222ca240bd68808cc6c19cf31e56f1efc64f0af8?
s=60&d=retro&r=g)

### 󠀁[Molto utile](https://wordpress.org/support/topic/molto-utile-36/)󠁿

 [webigelv](https://profiles.wordpress.org/webigelv/) 2023 年 11 月 18 日

Un modulo di grande utilità. Grazie.

 [ 阅读所有46条评价 ](https://wordpress.org/support/plugin/latest-post-shortcode/reviews/)

## 贡献者及开发者

「Latest Post Shortcode」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Iulia Cazan ](https://profiles.wordpress.org/iulia-cazan/)

「Latest Post Shortcode」插件已被翻译至 2 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/latest-post-shortcode/contributors)
为本插件所做的贡献。

[帮助将「Latest Post Shortcode」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/latest-post-shortcode)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/latest-post-shortcode/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/latest-post-shortcode/)，或通过[RSS](https://plugins.trac.wordpress.org/log/latest-post-shortcode/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/latest-post-shortcode/)。

## 更新日志

#### 14.2.3

 * Tested up to 7.0
 * PHP 8.4 compatibility
 * Prepares the styles for core next standardized UI component heights
 * Block apiVersion 3 and compatibility updates
 * Fixed the console warning for empty color value

See the [changelog](https://plugins.svn.wordpress.org/latest-post-shortcode/trunk/changelog.txt)
for detailed information on changes made in the earlier versions.

## 额外信息

 *  版本 **14.2.3**
 *  最后更新：**1 月前**
 *  活跃安装数量 **4,000+**
 *  WordPress 版本 ** 5.5.0 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 7.3.5 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/latest-post-shortcode/) 、 [Korean](https://ko.wordpress.org/plugins/latest-post-shortcode/)
   和 [Romanian](https://ro.wordpress.org/plugins/latest-post-shortcode/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/latest-post-shortcode)
 * 标签
 * [Gutenberg block](https://cn.wordpress.org/plugins/tags/gutenberg-block/)[posts grid](https://cn.wordpress.org/plugins/tags/posts-grid/)
   [posts shortcode](https://cn.wordpress.org/plugins/tags/posts-shortcode/)
 *  [高级视图](https://cn.wordpress.org/plugins/latest-post-shortcode/advanced/)

## 评级

 4.8 星（最高 5 星）。

 *  [  43 条 5 星评价     ](https://wordpress.org/support/plugin/latest-post-shortcode/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/latest-post-shortcode/reviews/?filter=4)
 *  [  1 条 3 星评价     ](https://wordpress.org/support/plugin/latest-post-shortcode/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/latest-post-shortcode/reviews/?filter=2)
 *  [  2 条 1 星评价     ](https://wordpress.org/support/plugin/latest-post-shortcode/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/latest-post-shortcode/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/latest-post-shortcode/reviews/)

## 贡献者

 *   [ Iulia Cazan ](https://profiles.wordpress.org/iulia-cazan/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/latest-post-shortcode/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=JJA37EHZXWUTJ)