Dynamic paginator for WpQeuries. Generate your own loop with an easy paginator.
- Upload
pgnator
to the /wp-content/plugins/
directory
- Activate the plugin through the 'Plugins' menu in WordPress
- Create a PgNator
$pgnator = new Pgnator();
ou
$pgnator = new Pgnator("path/to/your/own/style.css")
- Generate your queries using Pgnator
$posts = $pgnator->content("normal=arguments&like=WPQuerie");
ou
$posts = $pgnator->content("SELECT * FROM wp_posts",true);
- Create your loop
while($posts) {
$posts->the_post();
/// Create your own code
...
///
}
- Generate page links
echo $pgnator->createMenu();
- Done