このプラグインは WordPress の最新3回のメジャーリリースに対してテストされていません。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress で使用した場合は互換性の問題が発生する可能性があります。

WordPress Loop

説明

The WordPress Loop widget was written to allow users that don’t know their way around PHP to easily show their content in any way they’d like.

The widget has over 35 options to choose from. Customize your WordPress loop by one or more post types, categories, tags, custom taxonomies, authors, dates, custom fields, and a whole lot more!

In addition, it has support for post thumbnails, sticky posts, pagination, offsetting, customizable content length (by word count), and you can change the ordering from a variety of options. Oh, and you can also customize the .

WordPress Loop is truly an all-in-one solution for displaying your content on your site.

View the FAQ section for more info on how to use WordPress Loop.

スクリーンショット

  • View of the WordPress Loop widget settings.

インストール

  1. Upload ‘wordpress-loop’ to the ‘/wp-content/plugins/’ directory.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Go to Appearance > Widgets and place the WordPress Loop widget where you want.

FAQ

How does this widget work?

The WordPress Loop utilizes the WP_Query class to generate the widget loops. You can see a list of $args at the query_posts() codex page. The WordPress Loop widget also makes use of the action hooks and filters for advance customization.

What are the available shortcodes in this widget?

The before_content and after_content sections may contain shortcodes.
In addition, the WordPress Loop widget comes bundled with:

  • [title] – Displays the title of the post.
  • [author] – Displays the author of the post.
  • [date] – Displays the date the post was published.
  • [time] – Displays the time of day the post was posted.
  • [last_modified] – Displays the date the post was last modified.
  • [comments] – Displays the comment count of the post.
  • [cats] – Displays all categories (in a comma seperated link format) associated with the post.
  • [tags] – Displays any tags (in a comma seperated link format) associated with the post.
  • [tax] – Displays all taxonomies (in a comma seperated link format) associated with the post.
  • [edit] – Displays the edit link to edit the post.
What hooks are available in this widget?

The WordPress Loop has several action hooks available throughout the loop process:

  • before_loop – At the beginning of the loop
  • the_loop – In the loop, after all the content
  • in_the_loop_x – In the loop, after the .hentry div. Replace x with the number position you want to insert content into
  • after_loop – At the ending of the loop
  • loop_404 – When the loop can’t find any post

In addition, it also has several filter hooks where you can modify the content’s output:

  • wl_the_content – The post content
  • wl_postmeta – The text of the before_content and after_content widget settings
  • wl_entry_title – The post title
  • wl_entry_author – The post author
  • wl_entry_date – The date
  • wl_entry_time – the time of day the post was posted
  • wl_entry_last_modified – The date the post was last modified.
  • wl_entry_comments – The comment count of the post.
  • wl_entry_cats – Categories (in a comma seperated link format) associated with the post.
  • wl_entry_tags – Tags (in a comma seperated link format) associated with the post.
  • wl_entry_tax – Taxonomies (in a comma seperated link format) associated with the post.
  • wl_entry_edit – The edit link to edit the post.

評価

このプラグインにはレビューがありません。

貢献者と開発者

WordPress Loop はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“WordPress Loop” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

0.4 (01/26/2010)

* ADDED: new checkbox `use $wp_query` overrides all the widget query settings
* ADDED: new filter hook for `wl_the_content`
* UPDATED: readme.txt with info on the new `in_the_loop_x` hook from `0.3`
* UPDATED: updated the default text in `before_content`
* UPDATED: bug fix for `wl_entry_cats` if terms don't exists
* UPDATED: bug fix for `wl_entry_tags` if terms don't exists
* UPDATED: bug fix for `wl_entry_tax` if taxonomies don't exists
* UPDATED: changed the output of `wp_link_pages()` from `.entry-pages` to `.paged-links`
* UPDATED: readme.txt with info on all filter hooks + other minor changes.

0.3 (01/26/2010)

* ADDED: new hook `in_the_loop_x` where x is a non-negative number.
* ADDED: the post thumbnail image links to the actual post.
* ADDED: `widget-title` css class to the widget title.
* UPDATED: `wl_the_content` now wraps excerpts with p tags.
* UPDATED: all shortcodes and `wl_postmeta` now are filterable.

0.2 (01/25/2010)

* ADDED: ability to customize the main loop tag (div/ol/ul)
* ADDED: new shortcode [last_modified]
* UPDATED: readme.txt with more info

0.1 (01/24/2010)

* Initial release.