About this plugin
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