Custom Fields
Re-Envisioned
Support General Select box in media modal appears to be buggy

This topic contains 3 replies, has 2 voices, and was last updated by  Anh Tran 8 months, 4 weeks ago.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #10597

    Anh Tran
    Keymaster

    Hi,

    I’ve just tested your code and it works correctly. Did you set the correct post ID (for the attachment) when getting the value?

    #10666

    grafiknz
    Participant

    Thanks, I;m using the following code to display, does this look ok to you?

                         foreach ((array) $image as $id) {
                                $colour = rwmb_meta( 'meta_image_colour', '', $id );
                                echo "$colour ";
                            }   
    #10677

    Anh Tran
    Keymaster

    It looks okay to me. Don’t you get any result?

    Can you try print_r( $image ) first, to see if images are get correctly?

    And also try with get_post_meta in the place of rwmb_meta?

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

You must be logged in to reply to this topic.