This topic contains 5 replies, has 2 voices, and was last updated by Anh Tran 10 months, 3 weeks ago.
- Topic
I setup a field of type “post” and field_type=”checkbox_list” in order to select multiple posts.
When saving the post, the backend shows the checked posts correctly.
But when getting the data on the frontend:
$tour_ids = rwmb_meta( ‘prefix_fp_tours’ );
My variable $tour_ids only returns a single id.
Tried WP’s function:
$tour_ids = get_post_meta( get_the_ID(), ‘prefix_fp_tours’, false );
and here I get an array of ids.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.