Add General Setting field in Wordpress Dashboard via functions.php

1
2
$new_general_setting = new new_general_setting();
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
From: http://trepmal.com/2011/03/07/add-field-to-general-settings-page/

To output the new setting in a template, you can use get_option(), like this:

<?php $seo_title_value = get_option( 'seo_title', '' ); echo $seo_title_value; ?>

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.