[WordPress] 外掛分享: Latest Content by Anything

首頁外掛目錄 › Latest Content by Anything
WordPress 外掛 Latest Content by Anything 的封面圖片
全新外掛
安裝啟用
★★★★★
5/5 分(1 則評價)
58 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.4+ v2.0.0 上架:2024-05-07

內容簡介

#### 總結:
這個外掛可以讓你使用簡單的縮略語展示最新的內容(文章、產品或自定義文章類型)通過任何分類法。

#### 問題與答案:
1. 這個外掛主要能做什麼?
- 回答: 這個外掛可以讓你透過簡單的縮略語來展示最新的內容,包括文章、產品或自定義文章類型,並能根據任何分類法來篩選內容。

2. 請列出這個外掛的縮略語選項有哪些?
- 回答:
- num_items: 要顯示的項目數量(默認為5)。
- post_type: 要顯示的內容類型(默認為文章)。
- taxonomy: 要根據篩選內容的分類法(可選)。
- term: 要根據分類法中的術語篩選內容(可選)。
- thumbnail_size: 縮略圖大小(默認為縮略圖)。
- excerpt_length: 摘要長度(以字為單位,默認為100)。
- display_titles: 顯示標題(默認為true)。
- layout: 佈局(默認為垂直)。
- 'hide_price': 隱藏或顯示價格(true | false)。

3. 請描述一個完整的使用例子。
- 回答:
```
[latest_content_by_anything
num_items="5"
post_type="post"
taxonomy="category"
term="news"
thumbnail_size="thumbnail"
excerpt_length="100"
display_titles="true"
layout="vertical"
hide_price="false"
]
```

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Latest Content by Anything」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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"
]

Additional Resources

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

延伸相關外掛

文章
Filter
Mastodon