Hello,
Thank you for contacting the support, and sorry for any inconvenience that might have been caused due to that.
Unfortunately, this variable won’t return multiple terms at the moment. It will be a good addition to the plugin. We logged this as a feature suggestion for the enhancement of the plugin.
But for now, you can create or register a custom variable using this filter: https://rankmath.com/kb/filters-hooks-api-developer/#add-extra-variables
Here is a reference code from the WooCommerce file:
https://github.com/rankmath/seo-by-rank-math/blob/master/includes/modules/woocommerce/class-wc-vars.php
Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.
What I want is simple. Please if there is a way to return multiple terms give me codes. Or should I send my login details?
I really need it please
Hello,
As my colleague mentioned, if you would like to retrieve all the terms from any given taxonomy you’ll need to add a custom variable by modifying the code snippet we shared previously.
There’s also a built-in WordPress function that can be used to fetch all the terms for any given taxonomy: https://developer.wordpress.org/reference/functions/get_terms/
This function can be used in the variable you would create to achieve the desired results.
If you don’t feel confident with coding we recommend hiring a developer to implement this custom code.
Don’t hesitate to get in touch if you have any other questions.
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.