• Hello, I need help in the following code.
    It’s strange because ‘$postIDSkateA[0]’, [1] & [2] are full, I am sure than containg values.

    <?php

    if ( !empty( $postIDSkate ) ) {
    foreach ( $postIDSkate as $id ) {
    $postIDSkateA[] = $id;
    }
    }

    $coordenadasSkate1 = get_post_meta($postIDSkateA[0], ‘coordenadas_skatepark1’, true);
    $coordSkate1 = explode (‘,’, $coordenadasSkate1);

    $coordenadasSkate2 = get_post_meta($postIDSkateA[1], ‘coordenadas_skatepark2’, true);
    $coordSkate2 = explode (‘,’, $coordenadasSkate2);

    $coordenadasSkate3 = get_post_meta($postIDSkateA[2], ‘coordenadas_skatepark3’, true);
    $coordSkate3 = explode (‘,’, $coordenadasSkate3);

    ?>

    The explode is for separate the value in two.

    It’s very strange because I can print $coordSkate2, but no $coordSkate1 and $coordSkate3

    What is it happen?

    Thanks for the help. Im really locked..

Viewing 1 replies (of 1 total)
  • Thread Starter Paul Goethe

    (@paul-goethe)

    When I said that only $coordSkate2 can be printed I am mean that this have value, but the others no.

Viewing 1 replies (of 1 total)
  • The topic ‘Values after the loop’ is closed to new replies.