• I just noticed that the wp_title call is being deprecated with v4.4, which presents a problem because I’ve generally been using the WP PageNavi plugin and the following header code to add the page numbers on my news POSTs (this is needed as otherwise multi-page posts have duplicate titles):

    <title><?php wp_title(“”,true); ?><?php if ( $paged < 2 ) { } else { echo (‘ Page ‘); echo ($paged);} ?><?php if ( $page < 2 ) { } else { echo (‘ Page ‘); echo ($page);} ?></title>

    Crude, but it’s worked well for years. Now of course I can’t use that because the new method means you don’t even write the TITLE header tag into the template code, it just appears.

    So how can I add a page numbers to the title of POSTs under v4.4’s new way of doing things? I’m probably missing something obvious :).

    https://wordpress.org/plugins/wp-pagenavi/

  • The topic ‘How to Add Post Page Number to Title After WP4.4?’ is closed to new replies.