-
I am trying to create a custom variable for my job portal website (powered by WP Job Manager). My goal is to dynamically insert the job location (from the _job_location field) into the SEO Title and Meta Description using a variable such as %job_location%.
I have attempted to implement this with custom code (with guidance from ChatGPT), but unfortunately, it is not working. The variable either shows as empty or shows the wrong location.
For example, when I add Dubai, UAE, as the job location inside a job post, I would like to use a custom variable in Rank Math so that the SEO title appears like this:
👉 %title% Jobs in %job_location% %sep% %sitename%
Manager Jobs in Dubai, UAE | RankMath
Instead of me having to manually type the location every time, the %job_location% variable should automatically pull it from the job listing’s location field.
This feature would be extremely useful for job portals, where location changes with every job post.
Could you kindly guide me or provide the correct way to register and use such a variable in Rank Math?
I appreciate your support.
Best regards,
Rojas Hajareen
The ticket ‘Add Custom Variable for WP Job Manager Location’ is closed to new replies.