Linux 软件免费装
Banner图

Mini Loops

开发者 trepmal
更新时间 2021年6月17日 05:55
捐献地址: 去捐款
PHP版本: 3.5 及以上
WordPress版本: 5.7
版权: GPLv2 or later

标签

widget shortcode recent posts recent thumbnail loop most recent category posts template tag

下载

0.1 0.6 0.7 0.8 0.9 0.3 0.4 1.2 1.3.1 0.2 0.5 1.0 1.0.1 1.1 1.1.1 1.1.2 1.3 1.4 1.4.1

详情介绍:

Widget for mini post loops. Show most recent posts, posts from categories, and more. Can be displayed via widgets, shortcodes, and template tags. Development is now happening at the GitHub Repo

安装:

  1. Download the zip file and extract the contents.
  2. Upload the 'mini-loops' folder to your plugin directory (default: wp-content/plugins/).
  3. Activate the plugin through the 'plugins' page in WP.
  4. See 'Appearance'->'Widgets' to place it on your sidebar. Set the settings.

屏幕截图:

  • Widget Options
  • Sample Format 1 (see Other Notes)
  • Sample Format 2 (see Other Notes)
  • Sample Format 3 (see Other Notes)
  • Widget Options (pre 1.1)

升级注意事项:

1.4.1 Fix: Corrects sloppy shortcode fixes and Mini-Mini-Loops widget default settings. 1.4 General updates, improved shortcode compat with the Block Editor. 1.3 New: Automatically clear thumbnail cache and more. See Changelog 1.2 New: [author_avatar], replaced deprecated function, Ajax! Multisite! (See Changelog) 1.1.2 Fix: imbalanced tags if zero posts match query 1.1 New: Lots! See the changelog for details. 1.0 New: get from first category if viewing single post. 0.9 New: multisite support, better image handling. 0.8 New: new item format options (custom fields and taxonomies). 0.7 New: more excerpt options 0.6 New: get posts from current category (if archive) option. 0.5 Real image croping for thumbnails and several other new features. See Changelog.

其他记录:

Explanation of options: Widget Display Title: Your recent posts widget's title on your sidebar. Default: Recent Posts [miniloop title="Recent Posts"] get_miniloops( array('title' => 'Recent Posts' ) ); Title URL: The page the title should link to. Default: none [miniloop title_url="/blog/"] get_miniloops( array('title_url' => '/blog/'' ) ); Building the Query Number of Posts: Number of posts to be displayed. Default: 3 [miniloop number_posts=3] get_miniloops( array('number_posts' => 3 ) ); Post Offset: Number of posts to skip before displaying the list. Default: 0 [miniloop post_offset=0] get_miniloops( array('post_offset' => 0 ) ); Maximum Age: Don't show posts more than X days old Default: 0 [miniloop maximum_age=0] get_miniloops( array('maximum_age' => 0 ) ); Post Author: Get author's post. By ID. Default: none [miniloop post_author=0] get_miniloops( array('post_author' => 0 ) ); Post Type: Post type to display. Default: post [miniloop post_type=post] get_miniloops( array('post_type' => 'post' ) ); Post Status: Post status to display. Primarily useful to show upcoming (future) posts. But be creative! Default: publish [miniloop post_status=publish] get_miniloops( array('post_status' => 'publish' ) ); Order By: What order the posts should be displayed in. Default: date [miniloop order_by=date] get_miniloops( array('order_by' => 'date' ) ); Order: Ascending (good for order by title) or Descending (good for order by date) Default: DESC [miniloop order=DESC] get_miniloops( array('order' => 'DESC' ) ); Ordering by the values of some_key (works well if the values of some_key are strings/words): [miniloop order_by=meta_value order_meta_key=some_key] get_miniloops( array('order_by' => 'meta_value', 'order_meta_key' => 'some_key' ) ); Ordering by the numeric values of some_key (works well if the values of some_key are numbers/integers): [miniloop order_by=meta_value_num order_meta_key=some_key] get_miniloops( array('order_by' => 'meta_value_num', 'order_meta_key' => 'some_key' ) ); Show posts in reverse order? Perhaps you want the 3 most recent posts, but you want the oldest of those to be displayed first. If so, check this. Default: 0 [miniloop reverse_order=0] get_miniloops( array('reverse_order' => 0 ) ); Shuffle post order? Shuffle the order of the posts matching your query. Perhaps showing the 5 most recent posts in randomized order. Default: 0 [miniloop shuffle_order=0] get_miniloops( array('shuffle_order' => 0 ) ); Ignore sticky posts? Treat sticky posts as normal posts. I recommend ignoring, or the number of posts displayed may be inconsistent. Default: 1 [miniloop ignore_sticky=1] get_miniloops( array('ignore_sticky' => 1 ) ); Exclude sticky posts? Don't show sticky posts at all. Default: 0 [miniloop exclude_sticky=0] get_miniloops( array('exclude_sticky' => 0 ) ); Only sticky posts? Show only sticky posts. Default: 0 [miniloop only_sticky=0] get_miniloops( array('only_sticky' => 0 ) ); If viewing a single post, exclude it? If viewing a single post, remove it from the widget display. Default: 1 [miniloop exclude_current=1] get_miniloops( array('exclude_current' => 1 ) ); Get posts from current category (if archive)? If viewing an archive, only show posts from the same category. Default: 0 [miniloop current_category=1] get_miniloops( array('current_category' => 1 ) ); Get posts from first category (if single)? If viewing a single post, only show posts from the first category. Default: none [miniloop current_single_category=1] get_miniloops( array('current_single_category' => 1 ) ); Get posts from current author (if single or archive)? Show more posts from the current author. Default: none [miniloop current_author=1] get_miniloops( array('current_author' => 1 ) ); Categories: Comma separated list of category IDs to pull from. Use negative ID numbers to exclude a category. Default: none [miniloop categories="1,8,13"] get_miniloops( array('categories' => '1,8,13' ) ); Tags: Comma separated list of tag IDs to pull from. Use negative ID numbers to exclude a tag. Default: none [miniloop tags="15,40,88"] get_miniloops( array('tags' => '15,40,88' ) ); Custom Taxonomies: A clunky way to support custom taxonomies. Default: none. To include terms 5, 6, 9 from taxonomy "Genre" do this: [miniloop tax="genre=5,6,9"] get_miniloops( array('tax' => 'genre=5,6,9' ) ); Custom Fields: For listing posts that have certain meta data. Default: none. To list posts that have a custom field 'favorite_color' with a value of 'blue' do this: [miniloop custom_fields="favorite_color=blue"] get_miniloops( array('custom_fields' => 'favorite_color=blue' ) ); Exclude Posts: A comma separated list of post IDs to exclude. Default: none [miniloop exclude="15,200,1032"] get_miniloops( array('exclude' => '15,200,1032' ) ); Display Before Items: Text/HTML to insert before the post list. Default: <ul> [miniloop before_items="<div>"] get_miniloops( array('before_items' => '<div>' ) ); After Items: Text/HTML to insert after the post list. Default: </ul> [miniloop after_items="</div>"] get_miniloops( array('after_items' => '</div>' ) ); Item Format: HTML and shortcodes to format each item Shortcodes Sample Item Formats Format 1: http://s.wordpress.org/extend/plugins/mini-loops/screenshot-2.png (before: <ul> after: </ul>) <li class="[class]"><p><a href="[url]">[image from=customfield cfname=image width=50 height=50 class=alignright fallback='http://dummyimage.com/50'][title]</a><br /> [excerpt wlength=30 space_between=1 after="..." after_link=1]<br /><br /> By [author] on [date format="n/j/y"]</p></li> Format 2: http://s.wordpress.org/extend/plugins/mini-loops/screenshot-3.png (before: <ul> after: </ul>) <li class="[class]"><p>[date format="F j, Y"]<br /><a href="[url]"> [image from=customfield cfname=image width=180 height=100 class=aligncenter fallback='http://placekitten.com/180/100']</a> [excerpt length=90 space_between=1 after="..." after_link=1]</p></li> Format 3: http://s.wordpress.org/extend/plugins/mini-loops/screenshot-4.png (before: -- after: --) <p class="[class]" style="text-align:center"><a href="[url]">[title]<br /> [image from=customfield cfname=image width=140 height=140 class=aligncenter fallback='http://placepuppy.it/200/300&text=++woof++']</a></p>

更新日志:

Version 1.4.1 Version 1.4 Version 1.3.1 Version 1.3 Version 1.2 Version 1.1.2 Version 1.1 Version 1.0.1 Version 1.0 Version 0.9 Version 0.8 (2011.10.31) Version 0.8 Version 0.7 Version 0.6 Version 0.5 Version 0.4 Version 0.3 Version 0.2 Version 0.1