How to change paginated posts SEO title

  • Hi there, i’m trying to change the SEO title on paginated posts. The default is *post title* – page * of * – *website name*. i can’t find the place to change that.

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math today.

    You can use the following code on your theme’s functions.php file to modify the title on these pages:

    /**
     * Filter to change the page title.
     * 
     * @param string $title
     */
    add_filter( 'rank_math/frontend/title', function( $title ) {
            if(is_paged()){
                $title = "My custom title";
            }
    	return $title;
    });

    Looking forward to helping you. Thank you.

    ​​​​​​

Viewing 1 replies (of 1 total)

You must be logged in to reply to this ticket.