• Here what I use to initiate the theme options page:

    function setup_theme_admin_menus() {
        add_theme_page( "Theme Options", "Theme Options", "read", "th_op", "th_op" );
        function th_op() {
            get_template_part("content", "options");
        }
    }
    add_action("admin_menu", "setup_theme_admin_menus");

    When I was building it offline at my localhost it worked, but when I relocated it online it stopped rendering theme options page for some reason.

    Please help!

The topic ‘get_template_part(); doesn't seem to work when used online’ is closed to new replies.