How to change paginated posts SEO title

#14651
  • Resolved Ah Duvido
    Rank Math free

    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.

    ​​​​​​

    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.

Viewing 1 replies (of 1 total)

The ticket ‘How to change paginated posts SEO title’ is closed to new replies.