• Hello,
    I have added this to my head
    if ( $paged >= 2 || $page >= 2 ) echo ' | ' . sprintf( __( 'Page %s'), max( $paged, $page ) );
    in order for the meta title of paginated pages to also show the page number, but I would like the page number to be displayed BEFORE the site’s name, like this
    Uncategoried | Page 2 | mysite
    How would it need to be changed?

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    That entire code is responsible for only ‘ | Page 2’, move it to where you want its output relative to other output. Just mind that it’s inside <?php ?> tags and not in HTML portions.

    Also, code that outputs page content should not reside between head tags, it should be after the body tag. This still could be in your header.php template, just further down.

Viewing 1 replies (of 1 total)
  • The topic ‘Adding meta titles for paginated pages’ is closed to new replies.