WP Manifestindependent plugin directory

loopy

For the loopy developers who want to iterate with `foreach` over `WP_Query`.

★ 2stars
v1.0.0latest · 6 years ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/drdf/loopy/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

For the loopy developers who want to iterate with foreach over WP_Query.

usage

main query

foreach( loopy($GLOBALS['wp_query']) as $post ) {
    // ...
}

secondary query

$myQuery = new WP_Query('category_name=example-category');

foreach( loopy($myQuery) as $post ) {
    // ...
}

further information

Releases

2 releases.

Tag
Published
v1.0.0 latest
Feb 17, 2020 6 years ago
Feb 16, 2020 6 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.