Support

Account

Home Forums Bug Reports Default values not showing up using the Options page plugin

Helping

Default values not showing up using the Options page plugin

  • Hi,

    So I’ve exported a few custom fields (PHP) into a theme I’m working on. However, if I activate up the theme for the first time, I noticed the default values are not showing up. I have to go inside the options tab and save the values in order for the default values to work (which is not ideal).

    Is there a way this can be fixed?

  • Hi @johanngonzalez

    The default value is only intended to be used in the back-end for your client to see, it is not meant to be returned via the get_field function.

    You will need to use some logic in your code to allow for a false value being returned from the get_field function.

    Does that help?

    Thanks
    E

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

The topic ‘Default values not showing up using the Options page plugin’ is closed to new replies.