WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

WordPress Loop

A WordPress widget that gives you unprecendeted control over displaying your content.

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.

Requires: 2.9 or higher
Compatible up to: 2.9.2
Last Updated: 2010-1-26
Downloads: 6,607

Ratings

4 stars
4.6 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,3,3 100,2,2 100,1,1 100,4,4
100,1,1
100,3,3
100,1,1
100,1,1
100,1,1
0,1,0
0,1,0