diff --git a/functions.php b/functions.php index d32dc24..ac5c81f 100644 --- a/functions.php +++ b/functions.php @@ -1,76 +1,80 @@ is_main_query() ) { /** * Display all the Speakers in one single page * * See https://gitpull.it/T162 * See https://gitpull.it/T178 */ if ( is_tax( 'membertype' ) ) { $query->set( 'nopaging', true ); /** * Increase Podcasts per page * * See https://gitpull.it/T160 * See https://gitpull.it/T178 * */ } elseif( is_post_type_archive( 'podcast' ) || is_tax( 'podcastfilter' ) ) { $query->set( 'posts_per_archive_page', 16 ); } } } ); // Allow SVG upload in Border Radio website // https://gitpull.it/T591 add_filter( 'upload_mimes', function( $mimes ) { $mimes['svg'] = 'image/svg+xml'; return $mimes; } ); diff --git a/phpincludes/part-background-image-header.php b/phpincludes/part-background-image-header.php index 8bd4398..f07ed8d 100644 --- a/phpincludes/part-background-image-header.php +++ b/phpincludes/part-background-image-header.php @@ -1,54 +1,64 @@ -
+
term_id; } else if(is_tax('eventtype')){ $slug = get_query_var( 'eventtype' ); $term = get_term_by('slug', $slug, 'eventtype'); $catid = $term->term_id; } if(!empty( $catid)){ $image_id = get_term_meta($catid, 'qt_category_img_id', true); if($image_id){ $image_from_customizer = wp_get_attachment_url ( $image_id, 'full' ); } } } if($image_from_customizer != '') { ?>