• Resolved vtrn

    (@vtrn)


    Is it possible to SEO Query Parameter pages? set title and…
    This link for example: site.com/category/web/theme/?filter_cms=wp

Viewing 1 replies (of 1 total)
  • Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello @vtrn,

    Thank you so much for getting in touch.

    You can’t optimize these types of pages since these are dynamically generated pages.

    However, we have filter codes that should help you optimize them. Here are some examples:
    // For meta title add_filter( 'rank_math/frontend/title', function( $title ) { $url = home_url($_SERVER['REQUEST_URI']); if (strpos($url, '?filter_cms=wp')) { $title = 'Some description'; } return $title; }); // For meta description add_filter( 'rank_math/frontend/description', function( $description ) { $url = home_url($_SERVER['REQUEST_URI']); if (strpos($url, '?filter_cms=wp')) { $description = 'Some description'; } return $description; });
    You may refer to this guide on how to add filters to your website: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    You can explore more of our filters here: https://rankmath.com/kb/filters-hooks-api-developer/

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

Viewing 1 replies (of 1 total)

The topic ‘Query Parameter Page Seo’ is closed to new replies.