Categories
PHP WordPress

WordPress – Pagenation fix for custom post type

<?php
    $wp_query = new WP_Query();
    $param = array(
        'posts_per_page' => '10',
        'post_type' => 'vidablog',
        'post_status' => 'publish',
        'orderby' => 'post_date',
        'order' => 'DESC',
        'paged' => $paged
    );
    $wp_query->query($param);

    if($wp_query->have_posts()): while($wp_query->have_posts()) : $wp_query->the_post();
?>