Viewing 1 replies (of 1 total)
  • Theme Author FilaThemes

    (@filathemes)

    Hi @sangtuah

    Please try to add this code inside your Theme or child theme’s functions.php:

    add_action('pre_get_posts', function ($query) {
    
        if ($query->is_main_query() && is_front_page()) {
    
            // get the page query string value.
            $paged = ( get_query_var('page') ) ? get_query_var('page') : 1;
    
            // set current page query string.
            $query->set('paged', $paged);
    
        }
    
    });

    Let me know how it goes!

Viewing 1 replies (of 1 total)
  • The topic ‘Pagination on course post_types not working’ is closed to new replies.