跳到内容

Latest Content by Anything

v2.0.0

Jonny Quinn · 2024年5月8日 上架

Display latest posts, products, or any custom post type with powerful filtering by taxonomy. Lightweight, flexible, and WooCommerce compatible.

正在使用
10 以下
评分
5.0 / 5
累计下载
938
最近更新
2026年1月19日
1 条评价需要 WordPress 5.0+已测试到 6.7.12PHP 7.4+

贡献者

Latest Content by Anything is a lightweight yet powerful shortcode plugin that displays your latest content from any post type with flexible taxonomy filtering.

Key Features

  • Universal Post Type Support – Works with posts, pages, WooCommerce products, and ANY custom post type
  • Taxonomy Filtering – Filter by category, tag, or any custom taxonomy
  • WooCommerce Integration – Automatically displays product prices when showing products
  • Flexible Layouts – Choose between horizontal or vertical layouts
  • Customizable Display – Control titles, excerpts, thumbnails, and more
  • Developer Friendly – Clean code with proper escaping and sanitization
  • Lightweight – No bloat, minimal CSS, no jQuery dependency

Use Cases

  • Display latest blog posts on your homepage
  • Show featured products from a specific WooCommerce category
  • Create a portfolio grid from custom post types
  • Build related content sections
  • Display team members from a custom post type
  • Show testimonials filtered by service type
  • Feature recent news articles by category

Basic Usage

Simply add this shortcode to any page, post, or widget:

[latest_content_by_anything]

WooCommerce Example

Display your latest products with prices:

[latest_content_by_anything post_type="product" num_items="4" layout="horizontal"]

Pro Features

Looking for more? Latest Content by Anything Pro adds:

  • Multiple design templates
  • Visual shortcode builder
  • AJAX pagination (load more)
  • Masonry and carousel layouts
  • Gutenberg block
  • Custom field display (ACF compatible)
  • Priority support

Shortcode Parameters

Display Options

  • num_items – Number of items to display (default: 5)
  • post_type – Post type to query: post, page, product, or any CPT (default: post)
  • display_titles – Show post titles: true or false (default: true)
  • excerpt_length – Excerpt length in words, 0 to hide (default: 100)
  • thumbnail_size – WordPress image size: thumbnail, medium, large, full (default: thumbnail)

Filtering Options

  • taxonomy – Taxonomy slug to filter by (e.g., category, product_cat)
  • term – Term slug within the taxonomy to filter by

Layout Options

  • layout – Display layout: vertical, horizontal, or grid (default: vertical)
  • columns – Number of columns for grid layout, 1-6 (default: 3)

Sorting Options

  • orderby – Sort by: date, title, modified, rand, menu_order (default: date)
  • order – Sort direction: ASC or DESC (default: DESC)

Additional Options

  • exclude – Comma-separated post IDs to exclude
  • offset – Skip the first N posts (default: 0)
  • show_date – Display post date: true or false (default: false)
  • show_author – Display author name: true or false (default: false)
  • show_read_more – Add “Read More” link: true or false (default: false)
  • read_more_text – Custom “Read More” text (default: Read More)
  • cache – Enable query caching: true or false (default: true)

WooCommerce Options

  • hide_price – Hide product prices: true or false (default: false)

Complete Example

[latest_content_by_anything
    num_items="6"
    post_type="product"
    taxonomy="product_cat"
    term="featured"
    thumbnail_size="medium"
    excerpt_length="20"
    display_titles="true"
    layout="horizontal"
    hide_price="false"
]<h3>Additional Resources</h3>

* Full Documentation – Detailed guides and examples
* Feature Requests – Suggest new features
* Pro Version – Unlock advanced features

Plums

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

导航

说明

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

© 2026 Plums