Calling post_meta in MB Views

Support MB Views Calling post_meta in MB ViewsResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #28857
    Prabakaran ShankarPrabakaran Shankar
    Participant

    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.

    #28864
    Long NguyenLong Nguyen
    Moderator

    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

    #28865
    Prabakaran ShankarPrabakaran Shankar
    Participant

    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.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.