Elementor Pagination not working with %page%

#619211
  • Resolved Anonymous
    Rank Math free

    Elementor pagination doesn’t add /page/2/ it just adds /2/ to the URL, and Rank Math isn’t picking up the pagination and therefore the %page% attributed isn’t working.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    Could you please share the affected URL so we can check as well?

    Also, please share the screenshot of the %page% variable you have included. You can upload the screenshot using this tool and add the generated link here.

    Looking forward to helping you.

    Thank you.

    Anonymous
    Rank Math free

    Is there any update on this?

    Anonymous
    Rank Math free

    Hi,

    Here’s the URL for the blog pagination: https://www.harteywm.co.uk/blog/2/

    The screenshot is available here – https://imgur.com/a/rOJipTs

    Thanks for your help!

    Hello,

    Since our default pagination variables are not working for the page, please add the following filter to create a new variable named%paged%:

    add_action('rank_math/vars/register_extra_replacements', function () {
        rank_math_register_var_replacement(
            'paged',
            [
                'name'        => esc_html__('Page Number', 'rank-math'),
                'description' => esc_html__('Number of the page', 'rank-math'),
                'variable'    => 'paged',
                'example'     => paged_callback(),
            ],
            'paged_callback'
        );
    });
    function paged_callback()
    {
        return $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    }

    Once done, you can use the %paged% variable to add the page number to the SEO title.

    Here is how to add a filter to your site: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Let us know how that goes. Looking forward to helping you.

    Anonymous
    Rank Math free

    Hi,

    Thanks for getting back to me!

    It still doesn’t seem to work – I’ve added it to this page – https://www.harteywm.co.uk/blog/2/ but the number in the title isn’t changing.

    Thanks

    Hello,

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress logins in the designated Sensitive Data section.

    Please take a complete backup of your website before sharing the information with us.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping 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 6 replies - 1 through 6 (of 6 total)

The ticket ‘Elementor Pagination not working with %page%’ is closed to new replies.