{"id":192338,"date":"2024-05-08T13:32:36","date_gmt":"2024-05-08T13:32:36","guid":{"rendered":"https:\/\/en-gb.wordpress.org\/plugins\/latest-content-by-anything\/"},"modified":"2026-01-18T19:11:55","modified_gmt":"2026-01-18T19:11:55","slug":"latest-content-by-anything","status":"publish","type":"plugin","link":"https:\/\/en-ca.wordpress.org\/plugins\/latest-content-by-anything\/","author":20897130,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.0.0","stable_tag":"2.0.0","tested":"6.7.5","requires":"5.0","requires_php":"7.4","requires_plugins":null,"header_name":"Latest Content by Anything","header_author":"Jonny Quinn","header_description":"Display latest content by any taxonomy with shortcode.","assets_banners_color":"ebebeb","last_updated":"2026-01-18 19:11:55","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/themecanvas.co.uk\/donate\/","header_plugin_uri":"","header_author_uri":"https:\/\/displayposts.co.uk","rating":5,"author_block_rating":0,"active_installs":0,"downloads":673,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"2.0.0":{"tag":"2.0.0","author":"themecanvas","date":"2026-01-18 19:11:55"}},"upgrade_notice":{"2.0.0":"<p>Major feature update! New grid layouts, sorting options, caching, and admin documentation page. Fully backward compatible.<\/p>","1.0.14":"<p>Important bug fix release. Fixes potential errors on sites without WooCommerce. All users should update.<\/p>","1.0.13":"<p>Minor bug fixes and documentation improvements.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":1},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3083330,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3083330,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3083330,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3083330,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["2.0.0"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"Vertical layout displaying blog posts with thumbnails and excerpts","2":"Horizontal layout with WooCommerce products showing prices","3":"Shortcode in the Gutenberg block editor","4":"Custom post type display with taxonomy filtering"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[529,1578,245,166,80],"plugin_category":[43],"plugin_contributors":[227527],"plugin_business_model":[],"class_list":["post-192338","plugin","type-plugin","status-publish","hentry","plugin_tags-content","plugin_tags-display","plugin_tags-list","plugin_tags-posts","plugin_tags-shortcode","plugin_category-customization","plugin_contributors-themecanvas","plugin_committers-themecanvas"],"banners":{"banner":"https:\/\/ps.w.org\/latest-content-by-anything\/assets\/banner-772x250.png?rev=3083330","banner_2x":"https:\/\/ps.w.org\/latest-content-by-anything\/assets\/banner-1544x500.png?rev=3083330","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/latest-content-by-anything\/assets\/icon-128x128.png?rev=3083330","icon_2x":"https:\/\/ps.w.org\/latest-content-by-anything\/assets\/icon-256x256.png?rev=3083330","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p><strong>Latest Content by Anything<\/strong> is a lightweight yet powerful shortcode plugin that displays your latest content from any post type with flexible taxonomy filtering.<\/p>\n\n<h4>Key Features<\/h4>\n\n<ul>\n<li><strong>Universal Post Type Support<\/strong> - Works with posts, pages, WooCommerce products, and ANY custom post type<\/li>\n<li><strong>Taxonomy Filtering<\/strong> - Filter by category, tag, or any custom taxonomy<\/li>\n<li><strong>WooCommerce Integration<\/strong> - Automatically displays product prices when showing products<\/li>\n<li><strong>Flexible Layouts<\/strong> - Choose between horizontal or vertical layouts<\/li>\n<li><strong>Customizable Display<\/strong> - Control titles, excerpts, thumbnails, and more<\/li>\n<li><strong>Developer Friendly<\/strong> - Clean code with proper escaping and sanitization<\/li>\n<li><strong>Lightweight<\/strong> - No bloat, minimal CSS, no jQuery dependency<\/li>\n<\/ul>\n\n<h4>Use Cases<\/h4>\n\n<ul>\n<li>Display latest blog posts on your homepage<\/li>\n<li>Show featured products from a specific WooCommerce category<\/li>\n<li>Create a portfolio grid from custom post types<\/li>\n<li>Build related content sections<\/li>\n<li>Display team members from a custom post type<\/li>\n<li>Show testimonials filtered by service type<\/li>\n<li>Feature recent news articles by category<\/li>\n<\/ul>\n\n<h4>Basic Usage<\/h4>\n\n<p>Simply add this shortcode to any page, post, or widget:<\/p>\n\n<pre><code>[latest_content_by_anything]\n<\/code><\/pre>\n\n<h4>WooCommerce Example<\/h4>\n\n<p>Display your latest products with prices:<\/p>\n\n<pre><code>[latest_content_by_anything post_type=\"product\" num_items=\"4\" layout=\"horizontal\"]\n<\/code><\/pre>\n\n<h4>Pro Features<\/h4>\n\n<p>Looking for more? <strong><a href=\"https:\/\/themecanvas.co.uk\/pro\/\">Latest Content by Anything Pro<\/a><\/strong> adds:<\/p>\n\n<ul>\n<li>Multiple design templates<\/li>\n<li>Visual shortcode builder<\/li>\n<li>AJAX pagination (load more)<\/li>\n<li>Masonry and carousel layouts<\/li>\n<li>Gutenberg block<\/li>\n<li>Custom field display (ACF compatible)<\/li>\n<li>Priority support<\/li>\n<\/ul>\n\n<h3>Shortcode Parameters<\/h3>\n\n<h4>Display Options<\/h4>\n\n<ul>\n<li><code>num_items<\/code> - Number of items to display (default: 5)<\/li>\n<li><code>post_type<\/code> - Post type to query: post, page, product, or any CPT (default: post)<\/li>\n<li><code>display_titles<\/code> - Show post titles: true or false (default: true)<\/li>\n<li><code>excerpt_length<\/code> - Excerpt length in words, 0 to hide (default: 100)<\/li>\n<li><code>thumbnail_size<\/code> - WordPress image size: thumbnail, medium, large, full (default: thumbnail)<\/li>\n<\/ul>\n\n<h4>Filtering Options<\/h4>\n\n<ul>\n<li><code>taxonomy<\/code> - Taxonomy slug to filter by (e.g., category, product_cat)<\/li>\n<li><code>term<\/code> - Term slug within the taxonomy to filter by<\/li>\n<\/ul>\n\n<h4>Layout Options<\/h4>\n\n<ul>\n<li><code>layout<\/code> - Display layout: vertical, horizontal, or grid (default: vertical)<\/li>\n<li><code>columns<\/code> - Number of columns for grid layout, 1-6 (default: 3)<\/li>\n<\/ul>\n\n<h4>Sorting Options<\/h4>\n\n<ul>\n<li><code>orderby<\/code> - Sort by: date, title, modified, rand, menu_order (default: date)<\/li>\n<li><code>order<\/code> - Sort direction: ASC or DESC (default: DESC)<\/li>\n<\/ul>\n\n<h4>Additional Options<\/h4>\n\n<ul>\n<li><code>exclude<\/code> - Comma-separated post IDs to exclude<\/li>\n<li><code>offset<\/code> - Skip the first N posts (default: 0)<\/li>\n<li><code>show_date<\/code> - Display post date: true or false (default: false)<\/li>\n<li><code>show_author<\/code> - Display author name: true or false (default: false)<\/li>\n<li><code>show_read_more<\/code> - Add \"Read More\" link: true or false (default: false)<\/li>\n<li><code>read_more_text<\/code> - Custom \"Read More\" text (default: Read More)<\/li>\n<li><code>cache<\/code> - Enable query caching: true or false (default: true)<\/li>\n<\/ul>\n\n<h4>WooCommerce Options<\/h4>\n\n<ul>\n<li><code>hide_price<\/code> - Hide product prices: true or false (default: false)<\/li>\n<\/ul>\n\n<h4>Complete Example<\/h4>\n\n<pre><code>[latest_content_by_anything\n    num_items=\"6\"\n    post_type=\"product\"\n    taxonomy=\"product_cat\"\n    term=\"featured\"\n    thumbnail_size=\"medium\"\n    excerpt_length=\"20\"\n    display_titles=\"true\"\n    layout=\"horizontal\"\n    hide_price=\"false\"\n]&lt;h3&gt;Additional Resources&lt;\/h3&gt;\n<\/code><\/pre>\n\n<p>* <a href=\"https:\/\/themecanvas.co.uk\">Full Documentation<\/a> - Detailed guides and examples\n* <a href=\"https:\/\/themecanvas.co.uk\/feature-requests\/\">Feature Requests<\/a> - Suggest new features\n* <a href=\"https:\/\/themecanvas.co.uk\/pro\/\">Pro Version<\/a> - Unlock advanced features<\/p>\n\n<!--section=installation-->\n<h4>Automatic Installation<\/h4>\n\n<ol>\n<li>Go to Plugins &gt; Add New in your WordPress admin<\/li>\n<li>Search for \"Latest Content by Anything\"<\/li>\n<li>Click Install Now, then Activate<\/li>\n<\/ol>\n\n<h4>Manual Installation<\/h4>\n\n<ol>\n<li>Upload the <code>latest-content-by-anything<\/code> folder to <code>\/wp-content\/plugins\/<\/code><\/li>\n<li>Activate through the 'Plugins' screen in WordPress<\/li>\n<li>Use the <code>[latest_content_by_anything]<\/code> shortcode anywhere<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"how%20do%20i%20display%20woocommerce%20products%3F\"><h3>How do I display WooCommerce products?<\/h3><\/dt>\n<dd><p>Use <code>post_type=\"product\"<\/code> in your shortcode:<\/p>\n\n<pre><code>[latest_content_by_anything post_type=\"product\" num_items=\"4\"]\n<\/code><\/pre>\n\n<p>To filter by a product category, add the taxonomy and term:<\/p>\n\n<pre><code>[latest_content_by_anything post_type=\"product\" taxonomy=\"product_cat\" term=\"clothing\"]\n<\/code><\/pre><\/dd>\n<dt id=\"how%20do%20i%20filter%20posts%20by%20category%3F\"><h3>How do I filter posts by category?<\/h3><\/dt>\n<dd><p>Use the taxonomy and term parameters:<\/p>\n\n<pre><code>[latest_content_by_anything taxonomy=\"category\" term=\"news\"]\n<\/code><\/pre>\n\n<p>For tags, use:<\/p>\n\n<pre><code>[latest_content_by_anything taxonomy=\"post_tag\" term=\"featured\"]\n<\/code><\/pre><\/dd>\n<dt id=\"can%20i%20use%20custom%20post%20types%3F\"><h3>Can I use custom post types?<\/h3><\/dt>\n<dd><p>Yes! Replace \"post\" with your custom post type slug:<\/p>\n\n<pre><code>[latest_content_by_anything post_type=\"portfolio\"]\n\n[latest_content_by_anything post_type=\"testimonials\"]\n<\/code><\/pre><\/dd>\n<dt id=\"how%20do%20i%20create%20a%20horizontal%20layout%3F\"><h3>How do I create a horizontal layout?<\/h3><\/dt>\n<dd><p>Use the layout parameter:<\/p>\n\n<pre><code>[latest_content_by_anything layout=\"horizontal\" num_items=\"4\"]\n<\/code><\/pre><\/dd>\n<dt id=\"does%20it%20work%20with%20elementor%3F\"><h3>Does it work with Elementor?<\/h3><\/dt>\n<dd><p>Yes! Simply add the shortcode using Elementor's Shortcode widget. The plugin has been tested with Elementor and works without any issues.<\/p><\/dd>\n<dt id=\"does%20it%20work%20with%20wpbakery%20page%20builder%3F\"><h3>Does it work with WPBakery Page Builder?<\/h3><\/dt>\n<dd><p>Yes, the shortcode works perfectly in WPBakery's Text Block or Raw HTML elements.<\/p><\/dd>\n<dt id=\"does%20it%20work%20with%20the%20gutenberg%20block%20editor%3F\"><h3>Does it work with the Gutenberg block editor?<\/h3><\/dt>\n<dd><p>Yes! Use the Shortcode block in Gutenberg to add the shortcode. The Pro version includes a native Gutenberg block with a visual interface.<\/p><\/dd>\n<dt id=\"can%20i%20hide%20the%20featured%20image%2Fthumbnail%3F\"><h3>Can I hide the featured image\/thumbnail?<\/h3><\/dt>\n<dd><p>Set an empty or invalid thumbnail size, or you can style it with CSS:<\/p>\n\n<pre><code>.latest-content .content-item img { display: none; }\n<\/code><\/pre><\/dd>\n<dt id=\"how%20do%20i%20change%20the%20excerpt%20length%3F\"><h3>How do I change the excerpt length?<\/h3><\/dt>\n<dd><p>Use the excerpt_length parameter (in words):<\/p>\n\n<pre><code>[latest_content_by_anything excerpt_length=\"20\"]\n<\/code><\/pre>\n\n<p>To hide the excerpt entirely, set it to 0:<\/p>\n\n<pre><code>[latest_content_by_anything excerpt_length=\"0\"]\n<\/code><\/pre><\/dd>\n<dt id=\"can%20i%20display%20posts%20in%20random%20order%3F\"><h3>Can I display posts in random order?<\/h3><\/dt>\n<dd><p>Currently, posts are displayed by date (newest first). Random ordering is available in the Pro version.<\/p><\/dd>\n<dt id=\"is%20the%20plugin%20translation%20ready%3F\"><h3>Is the plugin translation ready?<\/h3><\/dt>\n<dd><p>Yes, the plugin uses WordPress internationalization standards with the text domain 'latest-content-by-anything'.<\/p><\/dd>\n<dt id=\"how%20do%20i%20style%20the%20output%3F\"><h3>How do I style the output?<\/h3><\/dt>\n<dd><p>The plugin uses CSS classes you can target in your theme's stylesheet:<\/p>\n\n<ul>\n<li><code>.latest-content<\/code> - Main container<\/li>\n<li><code>.content-item<\/code> - Individual item wrapper<\/li>\n<li><code>.content-title<\/code> - Post title<\/li>\n<li><code>.content-excerpt<\/code> - Excerpt text<\/li>\n<li><code>.product-price<\/code> - WooCommerce price (products only)<\/li>\n<li><code>.horizontal-layout<\/code> - Applied when layout=\"horizontal\"<\/li>\n<li><code>.vertical-layout<\/code> - Applied when layout=\"vertical\"<\/li>\n<\/ul><\/dd>\n<dt id=\"what%20css%20classes%20are%20available%20for%20styling%3F\"><h3>What CSS classes are available for styling?<\/h3><\/dt>\n<dd><p>Example custom CSS:<\/p>\n\n<pre><code>.latest-content .content-item {\n    background: #fff;\n    border: 1px solid #eee;\n    padding: 20px;\n}\n\n.latest-content .content-title a {\n    color: #333;\n    text-decoration: none;\n}\n\n.latest-content .content-title a:hover {\n    color: #0073aa;\n}\n<\/code><\/pre><\/dd>\n<dt id=\"does%20the%20plugin%20slow%20down%20my%20site%3F\"><h3>Does the plugin slow down my site?<\/h3><\/dt>\n<dd><p>No, the plugin is very lightweight. It makes a single database query and outputs minimal HTML and CSS. The Pro version adds optional caching for even better performance on high-traffic sites.<\/p><\/dd>\n<dt id=\"is%20there%20a%20pro%20version%3F\"><h3>Is there a Pro version?<\/h3><\/dt>\n<dd><p>Yes! <a href=\"https:\/\/themecanvas.co.uk\/pro\/\">Latest Content by Anything Pro<\/a> adds design templates, visual shortcode builder, AJAX pagination, Gutenberg block, and more.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.0.0 - 2025-01-17<\/h4>\n\n<ul>\n<li>NEW: Grid layout with customizable columns (1-6)<\/li>\n<li>NEW: Sorting options - orderby and order parameters<\/li>\n<li>NEW: Display post date with show_date parameter<\/li>\n<li>NEW: Display author with show_author parameter<\/li>\n<li>NEW: \"Read More\" link option with customizable text<\/li>\n<li>NEW: Exclude specific posts by ID<\/li>\n<li>NEW: Offset parameter to skip posts<\/li>\n<li>NEW: Query caching for improved performance<\/li>\n<li>NEW: Admin documentation page under Settings<\/li>\n<li>NEW: CSS custom properties for easy theming<\/li>\n<li>NEW: Responsive grid layouts<\/li>\n<li>IMPROVED: Modern class-based architecture<\/li>\n<li>IMPROVED: Better code organization and documentation<\/li>\n<li>Fixed: WooCommerce compatibility - no longer causes errors on sites without WooCommerce<\/li>\n<li>Fixed: Frontend compatibility issue with plugin detection<\/li>\n<li>Updated: Minimum WordPress version 5.0<\/li>\n<li>Updated: Minimum PHP version 7.4<\/li>\n<\/ul>\n\n<h4>1.0.14<\/h4>\n\n<ul>\n<li>Fixed: WooCommerce compatibility - no longer causes errors on sites without WooCommerce installed<\/li>\n<li>Fixed: Frontend compatibility issue with plugin detection function<\/li>\n<li>Updated: Tested up to WordPress 6.7<\/li>\n<li>Improved: Better code standards and security practices<\/li>\n<\/ul>\n\n<h4>1.0.13<\/h4>\n\n<ul>\n<li>Minor bug fixes<\/li>\n<li>Improved documentation links<\/li>\n<\/ul>\n\n<h4>1.0.12<\/h4>\n\n<ul>\n<li>Fixed: Error with WooCommerce categories<\/li>\n<li>Fixed: Error with WooCommerce price display<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Display latest posts, products, or any custom post type with powerful filtering by taxonomy. Lightweight, flexible, and WooCommerce compatible.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/en-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/192338","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/en-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/en-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/en-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=192338"}],"author":[{"embeddable":true,"href":"https:\/\/en-ca.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/themecanvas"}],"wp:attachment":[{"href":"https:\/\/en-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=192338"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/en-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=192338"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/en-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=192338"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/en-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=192338"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/en-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=192338"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/en-ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=192338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}