Multisite Home Page ID

Multisite Home Page ID

<?php
 // get the home page ID
 $home_page_id = get_option('page_on_front');
 // pass that ID to get the custom field
 $custom_field = get_post_meta($home_page_id, 'key_name', true);
?>
Comments are closed.