Custom Fields
Re-Envisioned
Support General gallery not saved as intended

  • Creator
    Topic
  • #17453
    Akram ul haq
    Participant

    Hi,

    One of mine client having trouble to set gallery images properly. We do use gallery this way like gallery post meta so for each image a new meta id is created with name gallery and it saved image id and so on …

    but in users system it saves all those meta boxes like in array rather than single gallery image. Kindly make it done for you as my client is really in trouble hope to see quick response this time …

    Again issue is, we saving meta box value in different key for each gallery but it saved all ids in one and saves as multiple results …
    like we want this
    gallery > 1
    gallery >2
    gallery > 3

    but it saved like this
    gallery > a:3{1,2,3}
    gallery > a:3{1,2,3}
    gallery > a:3{1,2,3}

    kindly guide us on this.

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
    Replies
  • #17456
    Anh Tran
    Keymaster

    How did you create the gallery? Did you use group for that?

    In this case, I think all you need is just using the image_advanced field.

    #17515
    Akram ul haq
    Participant

    Hi,

           `array(
                'id'               => $prefix . 'gallery',
                'name'             => esc_html__('Gallery', 'domain'),
                'type'             => 'image_advanced',               
                'force_delete'     => true,               
                'image_size'       => 'thumbnail',
            ),`
    

    This is the gallery and its outside the group or no group being used. If you want login access I can send you along with cpanel details.

    Its been some while now and client is behind me so please make it happen today.

    Thank You

    #17539
    Anh Tran
    Keymaster

    Hi Akram,

    Your field looks fine to me. Just want to make sure that field is not inside any group, is it?

    If it’s not, please send me a temporary admin account to check. There might be something else.

    #17540
    Akram ul haq
    Participant

    Hi,

    Sure, let me send you login credentials by contact page.

    Thank You

    #17541
    Akram ul haq
    Participant

    Hi,

    I have sent you credentials by your contact page.

    thanks and waiting badly

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Newsletter

Subscribe to our newsletter to receive news and tutorials for Meta Box and WordPress.


grid gear info copy caret-up caret-down trash