-
Hi,
I created template files programmatically for some post types and terms, some came by default on the theme I’m currently using. I don’t know if there is some kind of conflict between my theme and rank math plugin but numbering (pagination) on the page title doesn’t appear. It only appears on the URL.
I added the following snippet of code to help, but it only worked in some pages:
if ( ! function_exists( 'multipage_title' ) ) {
function multipage_title( $title ) {
global $page;
$paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1;
! empty ( $page ) && 1 < $page && $paged = $page;
//$paged > 1 && $title .= ' - ' . sprintf( __( 'Part %s', 'theme' ), $paged );
$paged > 1 && $title .= '';
return $title;
}
add_filter( 'rank_math/frontend/title', 'multipage_title', 100, 1 );
}There’s unusual issue with pages post types, in this case template files and rank math.
You must be logged in to reply to this ticket.