• peer1979

    (@peer1979)


    I’ve created an option page for webshop specific settings (woocommerce) and everything was working as expected a couple of weeks ago. Now i wanted to add another option and found this admin-page empty. I mean all my acf controls are there, but the values are missing.

    It seems however that they are still available in the database.

    Advanced Custom Fields PRO 5.4.8
    ACF Option Pages 1.0.0

    What’s wrong?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author goldhat

    (@goldhat)

    Can you clarify when you say “i wanted to add another option” you mean you’re adding a new Options Page? And what does “found this admin-page empty” mean. What admin page is empty? Are you referring to the new Options Page?

    When you first make a new Options Page it should show up in the admin menu with the title you specified. At this point there is no ACF field group associated, so if you visit that page it will be empty and have the notice from ACF: No Custom Field Groups found for this options page. Create a Custom Field Group.

    If you’re visiting an Options Page you already created, and no ACF fields are showing there I’d visit the field group settings in ACF and check if it’s associated with the correct options page?

    Plugin Author goldhat

    (@goldhat)

    Just quick note that ACF 5.5.2 is the latest version it wouldn’t effect this plugin directly but if your site had some database problem upgrading might fix it you should have prompt to upgrade at this point from the 5.4.8 you mentioned is in place now.

    Plugin Author goldhat

    (@goldhat)

    With further testing was able to reproduce the values not being saved in option page fields. This was due to the ACF post_id option being set to blank, it is normally “option” but can be overridden with something else. Storing that as blank stops the values from being saved or loaded, and does not create any errors. It sort of results in the data just being sent off into space, which is helpful if that’s your goal.

    v1.1.0 fixes that, post_id stays default unless specifically set with a string under “advanced options”. This version has been released, but it may be a day or so until you see the prompt to upgrade. You can force the update by deactivating and deleting the plugin, then searching for it again in the directory. Or manually download and replace the files.

    Thread Starter peer1979

    (@peer1979)

    Hello Goldhat,

    I see you figured it out, excellent job! I was indeed talking about values in ‘option page fields’ not being saved, although no error was shown.

    Will test you fix next week and thanks again!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Option page does not show content’ is closed to new replies.