How to create a custom theme options page in WordPress?

I want to create a custom option theme page for my wordpress theme and i found this tutorial
http://wp.tutsplus.com/tutorials/theme-development/create-a-settings-page-for-your-wordpress-theme/, but the problem is that it doesn’t work, and i am afraid that is too outdated. I am using wordpress 3.7.1. The function that i added and tried to create the wordpress setting theme page is

function setup_theme_admin_menus() {  
    add_submenu_page('themes.php',   
        'Front Page Elements', 'Front Page', 'manage_options',   
        'front-page-elements', 'theme_front_page_settings');   
}  
function theme_front_page_settings() {  
    echo "Hello, world!";  
}  

And i placed in my theme functions.php but nothing happened.

Related posts

Leave a Reply

1 comment