Guest User

index

a guest
Sep 6th, 2012
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <?php
  3. $tempy = get_option('reedwan_homepage_style',true);
  4. if($tempy !== "blog_style1" || $tempy !== "blog_style2" || $tempy !== "blog_style3" || $tempy !== "blog_style4" || $temp !== "magazine")
  5. {
  6. $my_query = new WP_query();
  7. // Assign predefined $args to your query
  8. $my_query->query("pagename=".$tempy);
  9. if ($my_query->have_posts()) : while ($my_query->have_posts()) : $my_query->the_post();
  10. the_content();
  11. endwhile;
  12. else : endif;
  13. wp_reset_query();
  14. }
  15. if($tempy == "blog_style1"){
  16. get_template_part('includes/HomeBlogStyle1');
  17. }
  18. if($tempy == "blog_style2"){
  19. get_template_part('includes/HomeBlogStyle2');
  20. }
  21. if($tempy == "blog_style3"){
  22. get_template_part('includes/HomeBlogStyle3');
  23. }
  24. if($tempy == "blog_style4"){
  25. get_template_part('includes/HomeBlogStyle4');
  26. }
  27. if($tempy == "magazine"){
  28. get_template_part('includes/HomeMagazine');
  29. }
  30. if($tempy == "none"){
  31. }
  32. ?>
  33. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment