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. You can embed as many shortcodes in a page as you need, each shortcode configured in a different way. The shortcode for displaying the latest posts is [latest-selected-content] and can be generated very easy, the plugin will add a block or a shortcode button in the editor area.
The “Latest Post Shortcode” is configurable and allows you to create a dynamic content selection from your posts, pages and custom post types by combining, limiting and filtering what you need. The output parameters are extremely flexible, allowing you to choose the way your selected content will be displayed.
You can write your own “read more” replacement, choose wether to show/hide featured images, you can even sort the items by a number of options, paginate the output (also AJAX pagination).
This plugin should work with any modern theme.
When used with WordPress >= 5.0 + Gutenberg, the plugin shortcode can be configured from the LPS block or from any Classic block, using the plugin button.
[latest-selected-content ver="2" perpage="4" showpages="4" display="title,date,excerpt-small" chrlimit="120" url="yes" linktext="Read more" image="thumbnail" elements="3" css="four-columns tall as-overlay light" type="post" status="publish" orderby="dateD" show_extra="ajax_pagination,light_spinner,pagination_all,date_diff,category,hide_uncategorized_category"]
or simply
[latest-selected-content ver="2" limit="4" type="post" display="title,content-small" chrlimit="50" image="full" elements="0" css="two-columns as-column" taxonomy="category" term="samples" 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 all by itself.
Starting with version 7.0.0, the plugin implements new hooks that allows for defining and managing your own custom output, through your theme or your plugins. The new hooks are:
– lps_filter_tile_patterns and lps_filter_display_posts_list – allows you to add your custom patterns
– lps_filter_use_custom_tile_markup – allows you to define your custom tile markup
– lps_filter_use_custom_section_markup_start and lps_filter_use_custom_section_markup_end – allows you to control the shortcode markup that is shown before and after the tiles block.
Check more hooks details and code sample at https://iuliacazan.ro/latest-post-shortcode/.
Version 2: lps_filter_tile_patterns, lps/override_card_patterns, lps_filter_display_posts_list, lps/override_card_display, lps/filter_sites_list, lps/card_output_types, lps/override_pagination_display/first, lps/override_pagination_display/prev, lps/override_pagination_display/next, lps/override_pagination_display/last, lps/override_pagination_display/first_icon, lps/override_pagination_display/prev_icon, lps/override_pagination_display/next_icon, lps/override_pagination_display/last_icon, lps/override_section_start, lps/override_card, lps/override_card_terms, lps/override_post_class, lps/override_section_end, lps/load_assets_on_page
Version 1: lps_filter_tile_patterns, lps_filter_display_posts_list, lps_filter_use_custom_tile_markup, lps_filter_use_custom_section_markup_start, lps_filter_use_custom_section_markup_end, lps_filter_use_custom_shortcode_arguments, lps_filter_use_custom_query_arguments
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12.0.1 – Fixed the second taxonomy dropdown options
12.0.0 – Tested up to 6.4.3; modified date sorting option; option to remove the non-core CSS classes from the card output; filter for altering the output for each card article CSS classes; option “no link for the terms”; options “no label” and “no link for the author”; auto image placeholder type; option to remove the LPS button from the Classic editor for roles; slider image aspect ratio option; inline scroller output option; inline scroller counters option; next / prev pagination option; pagination output filters that allow replacing the non-numeric elements with custom content/icons; LPS Block supports for color, padding, and margin; LPS Block dependencies updates; compatibility updates for Elementor >= 3.18.3; fix the inconsistent Elementor assets preview in the editor when the widgets are used on draft posts; updated the post type and statuses lists to include also the translated labels; simplified the output assets handles; plugin assets optimization; CPTs excluded list updates; editor accessibility updates; translations updates
11.6.0 – Tested up to 6.4.1; navigation enhancement; new card content vertical alignment: first top and last bottom; compatibility with Twenty Twenty-Four; dependencies and styles updates; fixed the post type option when there was nothing selected
11.5.2 – Tested up to 6.4; styles updates; added the option to always load the assets for backward compatibility or for custom page builders; fixed pagination in single page
11.5.1 – Tested up to 6.3.1; added total number of items when using pagination (and customizable text); added the dynamic parent option; added the dynamic author option; added the card and image aspect ratio options; assets load optimization; fixed the card highlight style; fixed the slider preview in the editor
11.5.0 – Tested up to 6.3; added site option (only available in multisite)
11.4.1 – Fail fast if the shortcode is not used as intended, fixed the errors when the arguments are not set
11.4.0 – Added new filters that allow changing the cards output, new option for a fallback message when no posts were found.
11.3.0 – Tested up to 6.2.2, added the terms exclude children option, added the editor placeholder for the block when there is no result, fixed the trim with punctuation
11.2.0 – Tested up to 6.2, tested with Elementor 3.12.0, image size option, auto vertical alignment, title no decoration, title uppercase, hover highlight, better precision for trimming the card content, improved grouping of card options in the UI, minor styles updated in the shortcode UI, translation updates
11.1.0 – New options for pagination (space between), search, archive, trailing chars, title+content trim together, hide taxonomy name, show only one term; small SEO improvement; fixed pagination first element in archive, fixed Firefox full card cursor, fixed the block styles in the site editor, admin styles updates
11.0.0 – Tested up to 6.1.1, extensive changes and additional features. NOTE: POTENTIAL BREAKING CHANGES for older versions – PLEASE BACKUP BEFORE UPGRADING
10.0.0 – Tested up to 6.0.1, updated the filtered statuses, CPTs and taxonomies, compatibility updated for Elementor 3.7.3 and PHP 8
9.6.5 – Restore the post object inside the legacy custom templates.
9.6.4 – Assets optimization, Elementor block icons update for dark mode
9.6.3 – Tested up to 5.5, icon update
9.6.2 – Tested up to 5.4.2, added the LPS / Latest Post Shortcode Gutenberg block, added the option to sort the posts ascending/descending by ID
9.6.1 – Fix the tiles variable height when not using columns
9.6 – Tested up to 5.4., fix tiles stripped attributes, added the CSS helper, added more options for responsive tiles, added the clear overlay, added the hover scale effect, added experimental horizontal tile, fix for Elementor preview update, added post classes
9.5.1 – Added the cache feature, up arrow in small resolution, support for 5 and 6 columns, support for aligning the tile content, fix limit attribute update, demo video, screenshots update
9.5 – Tested up to 5.3.2, infinite scroll option, slider wrapper element, pagination limit, multiple placeholders, UI styles update, enqueue updates
9.4 – Tested up to 5.3, align the pagination to center or to right
9.3 – Tested up to 5.2.2., added $args argument for the custom tile markup filter, added sticky posts filter, added one more taxonomy filter, added the option for line break after the shortcode
9.2.1 – Added caption extra option, selectable mime type position, tested with Elementor 2.5.15, tested up to 5.2.
9.2 – Fix no link for tiles using as-overlay class, new option to hookup the media link and media lightbox (integrate with Easy FancyBox and FooBox Image Lightbox)
9.1 – Fix attachment multiple status filters, added extra options for showing the mime type for attachments as text or/and as CSS class for the tile wrapper
9.0 – Tested up to 5.1.1, added the attachment tiles, added date range and dynamic range filtering for items
8.7 – Tested up to 5.1, title wrap, new tile patterns, raw content, support for Elementor
8.61 – Fix resize when used with Gutenberg
8.6 – Tested up to 5.0.1, support for four columns, support for tiles overlay, better translation
8.5 – Fix multiple terms filter, date difference update
8.4 – Tested up to 4.9.8, load more option, AJAX spinners, date difference option, excerpt and content pattern, slider without images
8.3 – Tested up to 4.9.7, exclude by tags and by categories, plugin translations
8.2 – Pagination update, SEO improvement, Gravity Forms compatibility
8.1 – Added missing assets
8.0 – New UI, new content filters, placeholder, output as slider options, tested up to 4.9.6
7.4 – Filters for shortcode arguments and shortcode query, filter by author, tested up to 4.8.2
7.3 – Added the option to show the author, categories and tags before or after specific tile elements
7.2 – Exclude dynamic content already exposed in the current page
7.1 – Extra options to display author and taxonomies, and order by random
7.0 – Introduce hooks for allowing the definition of custom output and the new UI
6.4 – Three columns style fix, tested up to 4.8
6.3 – Fix parents list, tested up to 4.4.2
6.2 – Add status support and exclude by tags support
6.1 – Apply more filters
6.0 – Add support for the Latest Post Shortcode Slider extension
5.4 – Separate the content and excerpt filters
5.3 – Open links in a new window
5.2 – Render full post content
5.1 – Posts order and ajax pagination
5.0 – Extra tags display and text widget filter
4.2 – Post date option
4.1 – Compatibility update
4.0 – Pagination position and dynamic tag
3.1 – Dynamic image dropdown option
3.0 – Pagination options
2.0 – Visual pattern selector and more features
1.0 – Initial version
Starting from $0 per month.
Rating
Reviewers
43 reviews
Tags
Developed By
Iulia Cazan
Quick & Easy
Common Ninja has a large selection of powerful Wordpress plugins that are easy to use, fully customizable, mobile-friendly and rich with features — so be sure to check them out!
Testimonial plugins for Wordpress
Contact Form plugins for Wordpress
Maps plugins for Wordpress
Translation plugins for Wordpress
Chat plugins for Wordpress
Slider plugins for Wordpress
Reviews plugins for Wordpress
Contact plugins for Wordpress
Galleries plugins for Wordpress
SEO plugins for Wordpress
Forms plugins for Wordpress
Comments plugins for Wordpress
Backup plugins for Wordpress
Privacy plugins for Wordpress
Optimize plugins for Wordpress
Tabs plugins for Wordpress
Social Sharing plugins for Wordpress
Events Calendar plugins for Wordpress
Comments plugins for Wordpress
Social Feeds plugins for Wordpress
Social Sharing plugins for Wordpress
Portfolio plugins for Wordpress
Video Player plugins for Wordpress
popup plugins for Wordpress
SiteMap plugins for Wordpress
Payment plugins for Wordpress
Coming Soon plugins for Wordpress
Inventory plugins for Wordpress
Testimonials plugins for Wordpress
Portfolio plugins for Wordpress
Membership plugins for Wordpress
Forms plugins for Wordpress
Analytics plugins for Wordpress
Events Calendar plugins for Wordpress
Sliders plugins for Wordpress
Analytics plugins for Wordpress
Reviews plugins for Wordpress
Security plugins for Wordpress
Ads plugins for Wordpress
Music Player plugins for Wordpress
Countdown plugins for Wordpress
Email Marketing plugins for Wordpress
Membership plugins for Wordpress
Ecommerce plugins for Wordpress
Customer Support plugins for Wordpress
Video Player plugins for Wordpress
Tabs plugins for Wordpress
Social Feeds plugins for Wordpress
Common Ninja Apps
Browse our extensive collection of compatible plugins, and easily embed them on any website, blog, online store, e-commerce platform, or site builder.
Increase User Engagement & Capture Leads
Bring Focus to Products & Increase Conversions With Product Blobs
Eye-Catching Multi-Rows Image Slides
Display YouTube Videos in a Sleek and Interactive Slider
Increase Sales by Displaying Discounts & Converting Customers
Draw Attention to Important Information & Keep Users Up-to-Date
Empower Your Monetization by Detecting Ad Blockers
Increase conversions with a Restaurant Menu List
Showcase and Manage Business Listings Effortlessly
Showcase Progress in a Beautiful, Animated, Visual Representation
Simplify the Subscription Process To Boost Engagement & Conversions
Transform PDFs into Interactive Experiences with PDF Flipbook
More plugins
The Common Ninja Search Engine platform helps website builders find the best site widgets, apps, plugins, tools, add-ons, and extensions! Compatible with all major website building platforms - big or small - and updated regularly, our Search Engine tool provides you with the business tools your site needs!