Part 3 – WordPress Theme Development – How to create Admin SubPages

:: Support Me ::
https://www.patreon.com/alecaddd
http://www.alecaddd.com/support-me/
http://amzn.to/2DsPZUn

How to build a Premium Theme for WordPress – Lesson 3
How to create a Admin SubPages

GitHub Repo: https://github.com/Alecaddd/Sunset-theme

Download Sunset Theme FREE: https://www.youtube.com/watch?v=ViZLtFIcSfo

:: Tutorial Series ::
WordPress 101 – Create a theme from scratch: https://www.youtube.com/playlist?list=PLriKzYyLb28nUFbe0Y9d-19uVkOnhYxFE

:: My Website ::
http://www.alecaddd.com/

:: Follow me on ::
Twitter: https://twitter.com/alecaddd
Google+: https://plus.google.com/u/0/+AlessandroCastellani/posts
Facebook: https://www.facebook.com/alecaddd

17 Comments on “Part 3 – WordPress Theme Development – How to create Admin SubPages”

  1. Could you check

    function farruxmedia_add_admin_page() {
    //Generate Farruxmedia Admin Page
    add_menu_page( 'Farruxmedia Theme Options', 'Farruxmedia', 'manage_options', 'abbosmedia', 'farruxmedia_theme_create_page', get_template_directory_uri() . '/img/farruxmedia-logo.png', 110 );

    //Generate Farruxmedia Sub Pages
    add_submenu_page( 'abbosmedia', 'Farruxmedia Theme Options', 'General', 'manage_options', 'abbosmedia', 'farruxmedia_theme_create_page' );

    add_submenu_page( 'abbsomedi', 'Farruxmedia CSS Options', 'Custom CSS', 'manage_options', 'abbosmedia-css', 'farruxmedia_theme_settings_page' );
    }
    add_action( 'admin_menu', 'farruxmedia_add_admin_page');

    function farruxmedia_theme_create_page(){
    //generation of admin page

    }

    function farruxmedia_theme_settings_page(){
    //generation of admin page
    }

  2. Hi. At line 15:52. I wonder why my line won't work. I just follow the line. I have a plugin directory and all my files are there. I just locate it through this
    require_once( get_template_directory() . 'page-test.php' );

    But it didn't work. Is there anything that I mess?

  3. hi how can i set an if else condition to enqueue my css and script on the specific menupage ie: if($pagenow = = 'admin.php?page="my_specific_page"') note: the condition is not correct thats why i hope that you can correct the code that i need. thanks!

  4. I'm not sure what I'm doing wrong. I cannot get any the add_admin_page functions to work for me . I checked my privileges in Php and in wordpress. All seem correct. I don't get any errors either. Nothing is working. any suggestions?

  5. Thank you So much ! ………………for just great video…..useful video for theme creation

  6. 666 likes Alessendro illuminati confirmed lol nice tutorials man i like your teaching ♥

  7. Love is in the air man.. I really like well explained lessons which are not so fast 🙂

  8. Hi, good video. I have used today something similar. But you'll catch one bug if you'll be use require_once for including templates. Template file will be called once and it you use it in second time as was in my case for multiple inputs PHP doesn't call this template again and I was wondering what happen, what I do wrong…

    So, my idea that for templates you should use require because you not define (usual) any functions that can be re-declared in template.

  9. I'm in love with your personality (Y) You're an amazing person this world really need people like you!

  10. Nice tut thank you,
    but i have a question what is the difference between
    get_template_directory() and get_template_directory_uri()

Comments are closed.