Home › Forums › Back End › WordPress – modify title tag. › Reply To: WordPress – modify title tag.
June 7, 2016 at 3:28 am
#242601
gulliver
Participant
Thanks.
I can’t get it to work.
General-template.php in core includes the line below, which seems to add the numbering to posts – but not pages.
if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) {
$title['page'] = sprintf( __( 'page %s' ), max( $paged, $page ) );
}