Hallo,
ich habe folgendes Problem beim erstellen von options für ein Theme:
[COLOR=Gray]// functions.php[/COLOR]
$theme_name = "Theme 01";
$short_name = "t01";
[COLOR=Gray]// options.php[/COLOR]
global $theme_name, $short_name;
[COLOR=Gray]// Problem Nr. 1:[/COLOR]
$theme_options_name = $short_name . '_theme_options';
add_option($theme_options_name, $theme_options, '', 'yes');
[COLOR=Gray]// ergibt: _theme_options statt t01_theme_options[/COLOR]
[COLOR=Gray]// options.php[/COLOR]
global $theme_name, $short_name;
[COLOR=Gray]// Problem Nr. 2:[/COLOR]
array(
"name" => __('Text input', 'lang'),
"desc" => __('Description: Test for a text input field.', 'lang'),
"id" => $short_name . "_test_text",
"type" => "text",
"default" => "Text input field"
),
[COLOR=Gray]// ergibt: _test_text statt t01_test_text[/COLOR]
Alles anzeigen
Etwaige Typo-/Tipfehler hab ich schon ausgeschlossen und liegen wenn dann nur daran, dass ich das jetzt geschrieben und nicht per copy/past eingefügt habe.
Ich hoffe jemand weiß eine Lösung oder kann erklären woran das liegt. Danke schön! beste Grüße! Kaiser.