Advertisement
Guest User

single.php

a guest
Jan 22nd, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. <?php
  2. /**
  3. * @package WordPress
  4. * @subpackage Aegaeus
  5. */
  6. ?>
  7. <?php
  8. if( is_singular ( __('flexslider','hbthemes') ) ||
  9. is_singular ( __('staff','hbthemes') ) ||
  10. is_singular ( __('testimonials' , 'hbthemes') ) ) {
  11. wp_redirect(home_url()); exit;
  12. }
  13. ?>
  14.  
  15. <?php get_header(); ?>
  16. <?php
  17. if(is_singular('post')) {
  18. get_template_part ( 'single' , 'blog' );
  19. } else if ( is_singular ( __('portfolio','hbthemes') ) ) {
  20. get_template_part ( 'single' , 'portfolio' );
  21. }
  22. ?>
  23. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement