From c4b2eb526c5733cc32b0550eb76fd072531e223c Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 17 Feb 2019 17:20:43 +0100 Subject: Creates custom post type and custom taxonomy and renders them correctly. --- search.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'search.php') diff --git a/search.php b/search.php index 2c59501..1495828 100644 --- a/search.php +++ b/search.php @@ -51,7 +51,11 @@ $container = get_theme_mod( 'understrap_container_type' ); * If you want to overload this in a child theme then include a file * called content-search.php and that will be used instead. */ - get_template_part( 'loop-templates/content', 'search' ); + if ( "angebote" == get_post_type() ) { + get_template_part( 'loop-templates/content', 'angebotenotitle' ); + } else { + get_template_part( 'loop-templates/content', 'search' ); + } ?> -- cgit v1.2.3