Custom Field in Page Header

Add custom field content to the header of a specific page.

<?php
function add_custom_field_to_page_header() {
    if (is_page('specific-page')) {
        $custom_field_value = get_post_meta(get_the_ID(), 'custom_field_key', true);
        if ($custom_field_value) {
            echo '<div class="custom

Post Comment