Support

Account

Home Forums Add-ons Gallery Field Gallery field not saving when added from PHP

Solved

Gallery field not saving when added from PHP

    • gruvii

    • October 25, 2013 at 8:54 am

    If I create a gallery field from the ACF plugin within wordpress, everything works fine. If I then use the ACF export to export the fields PHP code the field will not save. The metabox shows up ok and I can then select the items I want in the gallery and they show in the create/edit post page properly. Once I hit “update” on the post the gallery field loses the selected posts. Once again, it only is happening for a gallery field that is created using

    
    if(function_exists("register_field_group"))
    {
    	register_field_group(array (
    		'id' => 'acf_gallery', 

    • gruvii

    • October 25, 2013 at 9:06 am

    Found out my problem a few min after posting. Forgot that I was removing the field key when in the PHP creation of the field. Added that in and it worked ok.

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

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.