Meta Box
Support › MB Views › Calling post_meta in MB ViewsResolved
I want to use the post_meta in the MB Views.
Rankmath stored focus keyword in post_meta with the meta_id "rank_math_focus_keyword".
How to call the data stored in the custom field "rank_math_focus_keyword".
I have searched the post in the support forum. But unable to find it.
Sorry for the inconvenience for this kind of basic function query.
Hi,
You can use the function get_post_meta() via the proxy in View to get a field value.
Get more details on the documentation https://docs.metabox.io/extensions/mb-views/#running-php-functions
Thank you for your input.
I have used the mb. proxy in the following way to use in the MB Views post template
'{% set post = mb.get_post( ) %} {{ post.rank_math_focus_keyword }}'
Please close this ticket.