Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * The template for displaying all single posts
- *
- * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
- *
- * @package Yocto
- */
- get_header(); ?>
- <?php
- $post = $wp_query->post;
- if (in_category('3')) {
- include(TEMPLATEPATH.'/template-parts/single/single-blog.php');
- }
- elseif (in_category('4')) {
- include(TEMPLATEPATH.'/template-parts/single/single-jugendkrimi.php');
- }
- elseif (in_category('4')) {
- include(TEMPLATEPATH.'/template-parts/single/single-jugendserien.php');
- }
- elseif (in_category('4')) {
- include(TEMPLATEPATH.'/template-parts/single/single-kinderserien.php');
- }
- elseif (in_category('4')) {
- include(TEMPLATEPATH.'/template-parts/single/single-krimi.php');
- }
- elseif (in_category('4')) {
- include(TEMPLATEPATH.'/template-parts/single/single-ausland.php');
- }
- else {
- include(TEMPLATEPATH.'/template-parts/single/single-default.php');
- }
- ?>
- <?php
- get_sidebar();
- get_footer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement