Home page pagination detected

  • Unknown's avatar

    Why is there pagination url in my home page.; when I didn’t add any pagination on my home page. This problem is not only in my home page even on my other pages.

    My code is under for custom page.

    function custom_pagination($numpages = ”, $pagerange = ”, $paged = ”) {

    if (empty($pagerange)) {
    $pagerange = 2;
    }

    global $paged;

    if (empty($paged)) {
    $paged = 1;
    }

    if ($numpages == ”) {
    global $wp_query;
    $numpages = $wp_query->max_num_pages;
    if (!$numpages) {
    $numpages = 1;
    }
    }

    $pagination_args = array(
    ‘base’ => get_pagenum_link(1) . ‘%_%’,
    // ‘format’ => ‘?paged=%#%’,
    ‘format’ => ‘page/%#%’,
    // ‘total’ => $numpages,
    // ‘current’ => $paged,
    ‘show_all’ => false,
    ‘end_size’ => 1,
    ‘mid_size’ => 2,
    ‘prev_next’ => true,
    ‘prev_text’ => __(‘‘),
    ‘next_text’ => __(‘‘),
    ‘type’ => ‘list’,
    ‘add_args’ => false,
    ‘add_fragment’ => ”,
    );
    $paginate_links = the_posts_pagination($pagination_args);

    if ($paginate_links) {
    echo ‘

    ‘;
    echo $paginate_links;
    echo ‘

    ‘;
    }
    }

    Self-declared URL: https://rockyrealestate.com/
    Jetpack: Unknown
    WP.com: Unknown

  • Hello –

    Thanks for writing to us. Is this issue happenign on rockyrealestate.com/ or a different site? Taking a quick look at rockyrealestate.com/ I can see it’s hosted through Cloud Flare and doesn’t use our managed hosting environment from WordPress.com.

    The best thing to do is reach out to the volunteer network on https://wordpress.org/support/forums/ or the theme developer directly.

  • The topic ‘Home page pagination detected’ is closed to new replies.