Hello,
Rank Math %page% variables only work on the archive pages. Since your homepage is a static page, the variable is not working. To make it work, I added the following code in your themeās functions.php file:
add_filter( 'rank_math/frontend/title', function( $title ) {
if ( ! is_front_page() ) {
return $title;
}
global $wp_query;
if ( ! empty( $wp_query->query[ 'paged' ] ) && $wp_query->query[ 'paged' ] > 1 ) {
return $title . ' ' . $wp_query->query[ 'paged' ];
}
return $title;
});
The paginated page title is now showing the page number with the main title. Can you please confirm?
Thank you.
thank you so much! tomorrow I will check and let you know!
Hello,
Perfect, I hope it works for you but if not we will be here to continue helping you with this.
Looking forward to help you.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.