You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’ve noticed one thing, don’t know actually if thats a bug or it’s meant to be that way.
My option id looks like this "id" => "logo-url". As you can see I’m using a dash(-). When it saves an option to the database it drops the dash. And when I’m trying to retrieve the option echo of_get_option('logo-url');, it doesn’t retrieve anything. So when retrieving an option I also have to drop the dash from the option name. Using dashes in ids or classes is my old habit and also official WP documentation recommends this way.
I’ve tried using an underscore(_) in my ids and it worked perfectly as in the example theme.
The text was updated successfully, but these errors were encountered:
Comment from user here: http://wptheming.com/options-framework-theme/comment-page-1/#comment-13548
I’ve noticed one thing, don’t know actually if thats a bug or it’s meant to be that way.
My option id looks like this "id" => "logo-url". As you can see I’m using a dash(-). When it saves an option to the database it drops the dash. And when I’m trying to retrieve the option echo of_get_option('logo-url');, it doesn’t retrieve anything. So when retrieving an option I also have to drop the dash from the option name. Using dashes in ids or classes is my old habit and also official WP documentation recommends this way.
I’ve tried using an underscore(_) in my ids and it worked perfectly as in the example theme.
The text was updated successfully, but these errors were encountered: