What is wrong with this setup? Metaboxes inside this conditional will not get saved.
// Only shows for the admin front-page assigned page.
$front_page_id = get_option( 'page_on_front' );
$post_id = (empty($_GET['post'])) ? NULL : $_GET['post'];
if (is_admin() && $front_page_id == $post_id) {
........
}
Background: The idea of this setup is to have only on the static front page(Settings -> Reading) meta fields for the user to upload images that will be use on the slider.
$_POST
or$_REQUEST