Custom Fields
Re-Envisioned
Support General Add Select Values from Other Custom Fields Reply To: Add Select Values from Other Custom Fields

#12659

Pete Wlodkowski
Participant

Okay, great, so I have this set up – I rebuild the fields I want to use for my dropdown options in Meta Box instead of ACF.

fields

So, the fields I want to use for the Points dropdown are:

W
RU
T5
T10
T15
T20
T30
T40

My code is below:

https://ghostbin.com/paste/9gg73

Is it still basically the same to populate the points dropdown options…

I tried to modify the snippet you sent to this:

$options = array(
        'w' => get_r_points_table( $post_id, 'points_w', true ),
        'ru' => get_r_points_table( $post_id, 'points_ru', true ),
        // and so on.
    );

                    array (
                        'id' => 'ppoints',
                        'name' => 'Points',
                        'type' => 'select',
                        'placeholder' => 'Select an Item',
                        'options' => $options,
                        'columns' => 1,
                    ),

But it came up empty…

Thank you for your assistance!

This plugin is so great. I realize the limits to what I can build in WordPress are much broader now.

Thank you.