Set a featured image as a replacement to the header image

You did not mention or shown in the code to which hook are you hooking the above code to, but here’s what I think should work. NOT TESTED global $post; $header_image=””; // featured image is first priority, right? if ( has_post_thumbnail( $post->ID ) ) { $header_image = get_the_post_thumbnail_url( $post->ID, ‘full’ ); } elseif ( !empty( … Read more

Twenty Seventeen search error

@NerdOfLinux from the error what I can see that you are using undefined function get_exID()… WordPress has a function get_the_ID(). Change the function name get_exID() into get_the_ID().