Skip to content

cmwelsh/zesty-wp-query

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Zesty WP Query Iterator

Query WordPress With Zest

Thanks to Øystein Riiser Gundersen for allowing me to use his original code.


Overview

This plugin allows you to query WordPress very easily, using the built-in WP_Query class behind the scenes. Here is an example of the usage:

<?php foreach (new ZWP_Query(array('post_type' => 'page')) as $page) : ?>
    <h1><?php the_title(); ?></h1>
    <?php the_content(); ?>
<?php endforeach; ?>

As you can see, ZWP_Query takes the same arguments as WP_Query. For additional information, please read the WP_Query documentation.

License

GPLv2 or later

About

Query WordPress With Zest

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages