该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Latest Content by Anything

描述

This plugin allows you to display any content (posts, products, or custom post types) by any taxonomy using a simple shortcode.

This works with ANY Custom Post Type, Standard Posts or Woo Products.

Shortcode Options

  • num_items: Number of items to display (default: 5).
  • post_type: Type of content to display (default: post).
  • taxonomy: Taxonomy to filter content by (optional).
  • term: Term within taxonomy to filter content by (optional).
  • thumbnail_size: Thumbnail size (default: thumbnail).
  • excerpt_length: Excerpt length in words (default: 100).
  • display_titles: Display titles (default: true).
  • layout: Layout (default: vertical).
  • hide_price : Hide or display price (true | false)

Example :

[latest_content_by_anything post_type="post" num_posts=5]

Complete Example :

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

Full Documentation

安装

  1. Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. Use the [latest_content_by_anything] shortcode to display the latest content.

常见问题

How do I use this plugin?

Simply use the [latest_content_by_anything] shortcode with appropriate options to display the latest content on your site.

Does this work in Elementor?

Whilst it does not have any specific Elementor functionality, the shortcode has been tested on Elementor & WP Bakery without any issues.

评价

2024 年 5 月 21 日 1 回复
super easy and straightforward to use! the setup is quick and the interface is simple.. so anyone can use it, even for non tech-savvy… it works smoothly without any problems… highly recommended for its simplicity and efficiency. thank you author! 🙂
阅读所有1条评价

贡献者及开发者

「Latest Content by Anything」是开源软件。 以下人员对此插件做出了贡献。

贡献者

更新日志

1.0

  • Initial release.

1.0.12

  • Fixed Error with Woo Categories.
  • Fixed Error with Woo Prices

1.0.13

  • Minor Bug Fixes
  • Improved availability to Docs