RankMath %page% variable modification

#731048
Viewing 1 replies (of 1 total)
  • Hello,

    I apologize for the inconvenience you’re facing with the %page% variable. Unfortunately, the modification you’re looking for is not directly supported by Rank Math. However, you can achieve this format by using custom code to modify the output of the %page% variable.

    If you’re comfortable with coding, you can use a filter to modify the output of the %page% variable. Here’s an example of how you can achieve this:

    add_filter( 'rank_math/pagination', function( $output ) {
        return str_replace( 'page ', '- Page ', $output );
    });

    You can add this code to your theme’s functions.php file or use a custom plugin to add this code.

    If you need further assistance with this, feel free to reach out to our support team, and we’ll be more than happy to help.

    If you have any other questions or concerns, please don’t hesitate to ask.

    Sources:
    How to NoIndex Paginated Pages » Rank Math
    WordPress Permalink Structure & Changing Individual URLs » Rank Math
    Image SEO Options in Rank Math
    Using Variables in the SEO Title and Description » Rank Math

    This is an automated reply from Rank Math Support Bot. If you need further assistance, please reply to this topic and a human support agent will reply to you shortly.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this ticket.