Thank you very much Peter. I was wondering, is it also possible to use a shortcode to set the term ID? This shortcode is placed in my functions.php file and outputs the ID of the primary category of my post: [yoast-primary-category-id]. I want to use this to set the term ID dynamically.
I tried to use a function 'do_shortcode' for the shortcode, but this does not seem to work.
Hope you have an idea for this too?
{% set category_id = mb.function('do_shortcode', '[yoast-primary-category-id]') %}
{% set term_bookinglink = mb.rwmb_meta( 'bookinglink', { object_type: 'term' }, category_id ) %}
{{ term_bookinglink }}
Thanks a million,
Rod