Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Pär Thernström

    (@eskapism)

    Try this:

    $values = simple_fields_values('first_slug,second_slug,third_slug');
    
    print_r( $values );

    Then you will se what the variable $values contain, and then you can choose what to output.

    Thread Starter ChriswZurita

    (@chriswzurita)

    This is what I have so far:
    <?php
    {
    $values = simple_fields_values(‘FFL_Name,FFLnumber,CFLnumber,Serial_number,Order_Notes’);

    print_r( $values );
    var_dump($values);

    } ?>
    </p>

    and this is what it outputs:
    Array ( ) array(0) { }

    Do I need to do a get_simple_fields_values ? it seems like it is calling the right information just nothing is stored there. I added the field to a woocommerce order and am trying to get the values to a printout of the order

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘out is array when print field’ is closed to new replies.