About Options in theme and plugin…
-
Hello.
I develop a theme with options and I have two questions:
– To call the variables stored in wp-options in my theme, is it mandatory to indicate in each page (header, index, searc, single …) the following code:
<?php global $options; foreach ($options as $value) { if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); } } ?>– On the contrary, to call the variables stored in wp-options in a plugin, do I enter a query to each or can I call once and for all these values, as in the previous case?
Thank for your help.
V.
The topic ‘About Options in theme and plugin…’ is closed to new replies.