Hello,
Thank you for contacting the support, and sorry for any inconvenience that might have been caused due to that.
I’m afraid I wasn’t able to fully understand your objective here but I’ll do my best to understand and please let me know if I misunderstood.
Do you wish to add your brand name to your product’s meta title using the %wc_brand%
variable?
Also, the custom fields setting in Rank Math is for the custom field name to include it in the page analysis and adding the variable there won’t work.
Looking forward to helping you.
Do you wish to add your brand name to your product’s meta title using the %wc_brand% variable?
Yes I would like to add the same brand meta property to all products around my page not exactly by %wc_brand%
. Where should I put this? And could you please write an expample syntax for me thanks in advance!
Hello,
You can use the below action code to inject the extra meta fields in the header section of your website:
add_action( 'rank_math/head', function() {
//add echo or something
});
And use function something like this to fetch the data from the field:
get_field( ‘wc_brand’, $post_id );
Hope that helps. Thank 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.