![Latest Post Shortcode](https://ps.w.org/latest-post-shortcode/assets/icon-128x128.gif?rev=2355649)
Latest Post Shortcode
Hospedagem WordPress com plugin Latest Post Shortcode
Onde hospedar o plugin Latest Post Shortcode?
Este plugin pode ser hospedado em qualquer provedor que possua WordPress instalado. Recomendamos fortemente escolher uma empresa de hospedagem seguro, com servidores otimizados para WordPress, como o serviço de hospedagem de sites da MCO2.
Hospedando o plugin Latest Post Shortcode em um provedor confiável
A MCO2, além de instalar o WordPress na versão mais atual para seus clientes, disponibiliza o plugin WP SafePress, um mecanismo exclusivo que protege e aumenta a performance do seu site conjuntamente.
Por que a Hospedagem WordPress funciona melhor na MCO2?
A Hospedagem WordPress funciona melhor pois a MCO2 possui servidores otimizados para WordPress. A instalação de WordPress é diferente de uma instalação trivial, pois habilita imediatamente recursos como otimização automática de imagens e fotos, proteção da página de login, bloqueio de atividades suspeitas diretamente no firewall, cache avançado e HTTPS ativado por padrão. São recursos que potencializam seu WordPress para a máxima segurança e o máximo desempenho.
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/.
Ganchos
-
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/card_output_types
,lps/remove_donate_info
,lps/load_assets_on_page
,lps/exclude_ids
,lps/shortcode_arguments
,lps/query_arguments
-
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
Capturas de tela
![Example of horizontal cards (info + image) with prev/next pagination.](https://ps.w.org/latest-post-shortcode/assets/screenshot-1.png?rev=3117513)
Example of horizontal cards (info + image) with prev/next pagination.
![Example of 3 columns grid of overlay cards.](https://ps.w.org/latest-post-shortcode/assets/screenshot-2.png?rev=3117513)
Example of 3 columns grid of overlay cards.
![Example of 3 columns grid of vertical cards.](https://ps.w.org/latest-post-shortcode/assets/screenshot-3.png?rev=3117513)
Example of 3 columns grid of vertical cards.
![Example of 2 columns grid of horizontal cards (image + info).](https://ps.w.org/latest-post-shortcode/assets/screenshot-4.png?rev=3117513)
Example of 2 columns grid of horizontal cards (image + info).
![Example of horizontal cards (image + info) as an inline scroller.](https://ps.w.org/latest-post-shortcode/assets/screenshot-5.png?rev=3117513)
Example of horizontal cards (image + info) as an inline scroller.
![Example of slider with center mode.](https://ps.w.org/latest-post-shortcode/assets/screenshot-6.png?rev=3117513)
Example of slider with center mode.