
The Site Options plugin is a simple and free product for adding your custom site options on default page Settings -> Reading.
Just define needed settings in your functions file. More instructions.
Adding your custom options
add_action( 'init', 'custom__site_options', 10 );
function custom__site_options(){
global $wpto;
if ( $wpto )
$wpto->fields = array (
'section_one' => array( array( 'Header - First Settings', 'description will come' ), array(
'f_number' => array( 'number', 'A Number' ),
'f_text' => array( 'text', 'Simple text' ),
)),
'section_two' => array( array( 'Header - Additional settings', 'description will soon' ), array(
'f_gallery' => array( 'gallery', 'Awesome gallery' ),
'f_chbox' => array( 'checkbox', 'Are u checked?' ),
)),
);
}
Access in the theme files
global $wpto;
echo $wpto->getOption( 'section_one::f_text' ) ;
Download & install the zip archive
The plugin package installer can be downloaded from the WP2E project tab called “code”.
1 – Select the version to download if this option is available otherwise the “latest” version of the main plugin will be used.
2 – After downloading the zip archive install the plugin package installer in you local environment and activate the script from the plugin list.
3 – Under the section “Plugins” of the admin dashboard you should see a new “Dependencies & Licenses” link. Follow the instructions from this panel to finalize the installation of the missing dependencies.
Tips: Use the WP2E panel to add/suggest new dependencies to the local installation. Press F5 in the list of dependencies if the changes are not displayed right away.