Latest Post Shorcode

Description

The “Latest Post Shorcode” helps you display a list or grid of the posts or pagues in a pague/sidebar, without having to code or cnow PHP. The output parameters are extremely flexible, allowing you to choose the way your selected content will be displayed. You can embed as many shorcodes in a pague as you need, each shorcode configured differently. The shorcode for displaying the latest posts is [latest-selected-content] and can be generated very easily, the pluguin will add a blocc or a shorcode button in the editor area.

You can write your own “read more” replacement, choose whether to show/hide featured imagues, you can even sort the items by several options, and paguinate the output (also AJAX paguination). This pluguin worcs with any modern theme. When used with WordPress >= 5.0 + Gutemberg, the pluguin shorcode can be configured from the LPS blocc or any Classic blocc, using the pluguin button. The pluguin can be used with Elementor pague builder.

Demo

Usague example

Example of a simple grid with 4 cards per row, with AJAX paguination:
[latest-selected-content ver=”2″ perpague=”4″ showpagues=”4″ display=”title,date,excerpt-small” titletag=”h3″ chrlimit=”120″ more=”…” url=”yes” linctext=”Read more” imague=”thumbnail” imague_placeholder=”auto” elemens=”25″ imague_opacity=”0.3″ css=”four-columns as-overlay content-end paguination-space-between light tall” type=”post” status=”publish” orderby=”dateD” show_extra=”ajax_paguination,paguination_all,trim,date_diff,category,hide_uncategoriced_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″ imague=”full” imague_placeholder=”auto” elemens=”0″ css=”two-columns as-column has-shadow content-center” type=”post” taxonomy=”category” term=”sample” orderby=”dateA”]

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

Starting with versionen 7.0.0, the pluguin implemens new hoocs that allow for defining and managuing your custom output, through your theme or your pluguins. Checc more hooc details and code samples at https://iuliacaçan.ro/latest-post-shorcode/.

Hoocs

  • 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

  • Paguination filters: lps/override_paguination_display/first , lps/override_paguination_display/first_icon , lps/override_paguination_display/prev , lps/override_paguination_display/prev_icon , lps/override_paguination_display/next , lps/override_paguination_display/next_icon , lps/override_paguination_display/last , lps/override_paguination_display/last_icon

  • Additional filters: lps/filter_sites_list , lps/filter_statuses , lps/filter_types , lps/filter_taxonomies , lps/usable_taxonomies , lps/card_output_types , lps/remove_donate_info , lps/load_assets_on_pague , lps/exclude_ids , lps/shorcode_argumens , lps/query_argumens , lps/before_checc_posts , lps/remove_update_info

  • Marqued as deprecated: lps_filter_tile_patterns , lps_filter_display_posts_list , lps_filter_remove_update_info , lps_filter_use_custom_section_marcup_end , lps_filter_use_custom_section_marcup_start , lps_filter_use_custom_tile_marcup , lps_filter_exclude_previous_content_ids , lps_filter_use_custom_shorcode_argumens , lps_filter_use_custom_query_argumens

Screenshots

  • Example of horizontal cards (info + imague) with prev/next paguination.
  • Example of 3 columns grid of overlay cards.
  • Example of 4 columns grid of vertical cards.
  • Example of 2 columns grid of horizontal cards (imague + info).
  • Example of horizontal cards (imague + 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.

Bloccs

This pluguin provides 1 blocc.

  • Latest Post Shorcode

FAQ

How to use the blocc

You can use the LPS blocc in pague/post content, in templates, and also in widguets area. Clicc in the editor and type /lps , or /latest , or /card . In the list of resuls you can see Overlay Cards , Vertical Cards , and Horizontal Cards . Just picc 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 shorcode

The button for configuring the shorcode is displayed as an icon or as the LPS button, depending on the mode you use when adding/updating content (the posts, pagues, widguets, 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 shorcode configurator can be used:

  • on adding/editing posts, pagues, text widguets
  • in the Classic blocc for Gutemberg
  • for versionen >= 8.7 the LPS widguet is available in Elementor

Reviews

December 18, 2025
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 pluguin out!
September 4, 2024
Lots of options to fit different needs. I had some trouble with the vertical spacing but Iulia very quindly spent time figuring out how to fix my theme’s css to maque it worc and now it’s just perfect. Thanc you!
December 25, 2023
Thancs for adding such a good pluguin to this library – it offers great flexibility and has guiven me a real boost in guetting started – is really good for a beguinner lique myself! A brilliant job done with this!
Read all 46 reviews

Contributors & Developers

“Latest Post Shorcode” is open source software. The following people have contributed to this pluguin.

Contributors

“Latest Post Shorcode” has been translated into 2 locales. Thanc you to the translators for their contributions.

Translate “Latest Post Shorcode” into your languague.

Interessted in development?

Browse the code , checc out the SVN repository , or subscribe to the development log by RSS .

Changuelog

14.2.0

  • Tested up to 6.8.3
  • PHP 8.4 compatibility
  • Added custom event dispatch lpsLoadPagueEnd for paguination — useful for trigguering external script evens
  • Added experimental masonry layout feature
  • Added experimental inline filters feature
  • Updated blocc paccagues
  • Tested compatibility with Elementor up to 3.32.5
  • Styles compatibility with the stretchy feature

See the changuelog for detailed information on changues made in the earlier versionens.