Using %vx() dynamic tags in Rank Math meta (SSR + multiple tags)

#1082830
  • Hi Rank Math team,

    We’re using Rank Math with the Voxel theme. Voxel exposes dynamic tags that can be inserted in Rank Math fields via the %vx(…)% syntax (e.g. %vx(@post(city.name))%).

    We plan to build SEO titles/descriptions by combining multiple %vx(…)% values:
    Title: %vx(@post(service.name))% in %vx(@post(city.name))% | %sitename%
    Desc: %vx(@post(profile.about).truncate(160))%

    Could you please confirm:

    1) Is using multiple %vx(…)% tags in a single field fully supported?
    2) Do Voxel “mods” (e.g. .truncate(), .list_all(), .fallback()) work reliably inside Rank Math fields?
    3) Are these outputs rendered server-side in the final HTML (no JS required)?
    4) Any best practices for:
    – Hooks: rank_math/frontend/title, /description, /canonical, /robots, /json_ld
    – Handling pages that already have manual meta (ensure global templates apply)
    – Excluding parameterized filter URLs from index (noindex,follow)
    – Sanitization/length limits for dynamic outputs

    If helpful, I can provide staging access and example URLs.

    Thanks!

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

    We apologize for the issues you are facing with using dynamic tags in Rank Math. Thank you for raising your concerns regarding the integration with the Voxel theme and the use of %vx(…)% tags. Here’s what we can confirm based on your questions:

    1. Using multiple %vx(…)% tags in a single field: Yes, using multiple %vx(…)% tags in a single field is supported. You can combine them as you have shown in your examples for titles and descriptions.

    2. Voxel “mods” (e.g., .truncate(), .list_all(), .fallback()): These mods should work reliably inside Rank Math fields, but we recommend testing them to ensure they behave as expected in your specific setup.

    3. Outputs rendered server-side: Yes, the outputs from these dynamic tags are rendered server-side in the final HTML, which means no JavaScript is required for them to display correctly.

    4. Best practices:

      • Hooks: For hooks like rank_math/frontend/title, description, canonical, robots, and json_ld, ensure that you are using them correctly to modify or filter the output as needed. It’s best to test these hooks in a staging environment first.
      • Handling pages with manual meta: To ensure global templates apply, you may want to set conditions in your templates to check if manual meta exists and decide whether to apply the global template or not.
      • Excluding parameterized filter URLs: You can set these URLs to noindex, follow by using the appropriate settings in Rank Math or by adding custom rules in your robots.txt file.
      • Sanitization/length limits: It’s important to keep an eye on the length of dynamic outputs to ensure they fit within SEO best practices (typically under 60 characters for titles and 160 characters for descriptions). You may want to implement checks or truncation within your dynamic tags to manage this.

    If you need further assistance or would like to provide staging access and example URLs for more specific guidance, please reply to this ticket, and a human agent from our support team will assist you further.

    Thank you for your understanding, and we hope this information helps you with your setup!

    Sources:
    Using Variables in the SEO Title and Description » Rank Math
    Using Variables in the SEO Title and Description » Rank Math

    This is an automated reply from Rank Math Support Bot. Your ticket has been assigned to a human agent and we will get back to you shortly.

    Hello,

    Thank you so much for getting in touch.

    Currently, Rank Math does not support third-party dynamic variables like Voxel’s tags directly. To use dynamic values in Rank Math fields, you can use the %customefield(field_name)% variable with your custom field name from Voxel.

    If Voxel’s dynamic tags are not stored as custom fields, creating a custom variable in Rank Math would be necessary. You can find guidance on this here: https://rankmath.com/kb/variables-in-seo-title-description/#how-to-add-custom-variables

    Don’t hesitate to get in touch with us if you have any other questions.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this ticket.