Support

Account

Home Forums Add-ons Repeater Field get_post_custom_values Reply To: get_post_custom_values

  • Yes, i worked that out so i had to use a different key for each. Thanks.

    Here’s the code i used :

    
    $logo_1 = get_post_meta( get_the_ID(), 'logo_1', true );
    $logo_2 = get_post_meta( get_the_ID(), 'logo_2', true );
    $logo_3 = get_post_meta( get_the_ID(), 'logo_3', true );
    $logo_4 = get_post_meta( get_the_ID(), 'logo_4', true );
    $logo_5 = get_post_meta( get_the_ID(), 'logo_5', true );
    
    $key = [ $logo_1, $logo_2, $logo_3, $logo_4, $logo_5 ];