summaryrefslogtreecommitdiff
path: root/search.php
diff options
context:
space:
mode:
authorMax2019-02-17 17:20:43 +0100
committerMax2019-02-17 17:20:43 +0100
commitc4b2eb526c5733cc32b0550eb76fd072531e223c (patch)
tree9e3355627357ca392ae26574c81181bf33bd028e /search.php
parent43a8c0fe50529a6b4161d12f087925c06ce37574 (diff)
downloadfuselkoenig_de-c4b2eb526c5733cc32b0550eb76fd072531e223c.tar.gz
Creates custom post type and custom taxonomy and renders them correctly.
Diffstat (limited to 'search.php')
-rw-r--r--search.php6
1 files changed, 5 insertions, 1 deletions
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' );
+ }
?>
<?php endwhile; ?>