• Resolved DeborahS

    (@deborahs)


    This previously worked to get a category field from a meta box. After the update, this returns nothing. I need the category name that was selected in the taxonomy meta box when this page is loaded.

    $terms = rwmb_meta( '', 'type=taxonomy&taxonomy=tribe_events_cat' );

    Any suggestions?

    https://ww.wp.xz.cn/plugins/meta-box/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Anh Tran

    (@rilwis)

    Can you please try the development version on Github? I’ve just pushed a fix for that.

    Technical note: I think you should to update the call to rwmb_meta:
    1. Include the field ID as the first parameter
    2. Make sure the function to register meta boxes run in both frontend and the admin area. In that case you can omit the 2nd parameter. If you include it in the admin only, you have to specify type=taxonomy&taxonomy=tribe_events_cat

    Thread Starter DeborahS

    (@deborahs)

    Your update fixed it. Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Query not Working’ is closed to new replies.