cat_ID; if ( get_field( 'show_category_header', 'category_'. $cat_id ) === 'no' ) { return; } if ( get_field( 'upload_custom_cat_header_image', 'category_'. $cat_id ) != '' ) { $header_image = get_field( 'upload_custom_cat_header_image', 'category_'. $cat_id ); } $header_logo = get_field( 'show_category_logo', 'category_'. $cat_id ); } if ( is_page() ) { if ( get_field( 'show_page_header' ) === 'no' ) { return; } if ( get_field( 'upload_custom_page_header_image' ) != '' ) { $header_image = get_field( 'upload_custom_page_header_image' ); } $header_logo = get_field( 'show_page_logo' ); } ?>