Guest User

Untitled

a guest
Aug 4th, 2021
70
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3.  * The template for displaying all single posts
  4.  *
  5.  * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
  6.  *
  7.  * @package Yocto
  8.  */
  9.  
  10. get_header(); ?>
  11.  
  12. <?php
  13. $post = $wp_query->post;
  14. if (in_category('3')) {
  15.  include(TEMPLATEPATH.'/template-parts/single/single-blog.php');
  16. }
  17.  
  18. elseif (in_category('4')) {
  19.  include(TEMPLATEPATH.'/template-parts/single/single-jugendkrimi.php');
  20. }
  21.  
  22. elseif (in_category('4')) {
  23.  include(TEMPLATEPATH.'/template-parts/single/single-jugendserien.php');
  24. }
  25.  
  26. elseif (in_category('4')) {
  27.  include(TEMPLATEPATH.'/template-parts/single/single-kinderserien.php');
  28. }
  29.  
  30. elseif (in_category('4')) {
  31.  include(TEMPLATEPATH.'/template-parts/single/single-krimi.php');
  32. }
  33.  
  34. elseif (in_category('4')) {
  35.  include(TEMPLATEPATH.'/template-parts/single/single-ausland.php');
  36. }
  37.  
  38. else {
  39.  include(TEMPLATEPATH.'/template-parts/single/single-default.php');
  40. }
  41. ?>
  42.  
  43. <?php
  44. get_sidebar();
  45. get_footer();
  46.  
RAW Paste Data