• Resolved jovern

    (@jovern)


    Hi,

    I can’t seem to get the Pagination to work. Even if i manually key in /page/2 on the browser URL, the content is still not changing.
    I also tried both get_query_var for ‘page’ & ‘paged’ but both is not working too.

    development URL here (https://staging.rasautara.com.my/menu-section/full-menu/)

    code snippet:
    global $paged;
    $paged = ( get_query_var(‘page’) ) ? get_query_var(‘page’) : 1;

    echo $paged;
    $wp_query = new WP_Query();
    $wp_query->query( array(
    ‘post__in’ => $menuItemIds,
    ‘post_type’ => ‘fl-menu-item’,
    ‘posts_per_page’ => 6,
    ‘paged’ => $paged,
    ) );

    https://www.ads-software.com/plugins/foodlist/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Pagination issue in Menu Section’ is closed to new replies.