• I’m using this code in order to display what page the user is.

    <title><?php
        global $page, $paged;
        wp_title( '|', true, 'right' );
        bloginfo( 'name' );
        $site_description = get_bloginfo( 'description', 'display' );
        if ( $site_description && ( is_front_page() ) )
            echo " | $site_description";
        if ( $paged >= 2 || $page >= 2 )
            echo ' | ' . sprintf( __( 'Page %s' ), x( $paged, $page ) );
    ?></title>

    When clicking on the navigation it seem to be working properly and it also displays the correct title. But when I click on the pagination, the website shows only a blank page.

    I’m using WP-PageNavi plugin to display the pagination.

    When I hovered on the tab an error appeared:

    https://i255.photobucket.com/albums/hh140/testament1234/title_zps2c22f473.jpg

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘I'm using this code in order to display what page the user is.’ is closed to new replies.