Add page number to Yoast meta description and page titles/descriptions to avoid duplication

if ( ! function_exists( 'ujp_add_page_number' ) ) { function ujp_add_page_number( $s ) { global $page; $paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1; ! empty ( $page ) && 1 1 && $s .= ' - ' . sprintf( __( 'Page %s' ), $paged ); return $s; } add_filter( 'wpseo_metadesc', 'ujp_add_page_number', 100, … Continue reading Add page number to Yoast meta description and page titles/descriptions to avoid duplication