HOW TO USE THE PLUGIN
After installing, PgNator whill give you freedom with your WPqueries
1. Create a PgNator
$pgnator = new Pgnator();
ou
$pgnator = new Pgnator(“path/to/your/own/style.css”)
2. Generate your queries using Pgnator
$posts = $pgnator->content(“normal=arguments&like=WPQuerie”);
ou
$posts = $pgnator->content(“SELECT * FROM wp_posts”,true);
3. Create your loop
while($posts) {
$posts->the_post();
/// Create your own code
…
///
}
4. Generate page links
echo $pgnator->createMenu();
5. Done
Keep track of github, just updated the plugin <https://github.com/bltavares/PgNator>