• Resolved anburaja

    (@anburaja)


    hello,
    i created some multiselect field in listing data , now i want to query the multiselect selected values and display it in the page.
    here is the code

    $amenitites = get_code_meta( $post->ID, '_job_amenities', false);
    if ( ! empty ( $amenitites ) ) :
    		
      foreach ( $amenitites as  $amens ){
    	echo '<li>' . __( 'Amenities:' ) . ' $' . esc_html($amens) . '</li>';
    			}
    endif;

    but it is not displaying values in the page, please help

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘query the selected value in multiselect in admin’ is closed to new replies.