• I want to use this plugin to build pagination to my custom query that queries all videos uploaded to wordtube.

    My query is

    select wt.vid vid, wt.name, wt.description description, wt.counter,wt.image,wp.pid pid, wp.playlist_name modulefrom $wpdb->wordtube wt, $wpdb->wordtube_playlist wp, $wpdb->wordtube_med2play wm
    where wt.vid = wm.media_id
    and wp.pid = wm.playlist_id
    
    order by wt.counter desc"

    Any thoughts on how to build while loop for this ?

    I am goign to page template to display the videos.

    http://wordpress.org/extend/plugins/pgnator/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author bltavares

    (@bltavares)

    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&gt;

    Great explanation bltavares.
    Pgnator its a great and flexible solution for theme developer’s on wordpress.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: Pgnator] how to build loop ?’ is closed to new replies.