- This topic has 5 replies, 2 voices, and was last updated 2 years, 11 months ago by .
-
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.