Advertisement
Guest User

single.php

a guest
Apr 8th, 2012
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.42 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The Template for displaying all single posts.
  4.  *
  5.  * @package WordPress
  6.  * @subpackage twentyten
  7.  * @since Twenty Ten 1.0
  8.  */
  9.  
  10. get_header();
  11. $posts3x = get_posts(array('category' => 14));
  12. foreach ($posts3x as $hardikx)
  13. {
  14.     $testphx=get_object_vars($hardikx);
  15.     $test4x[]=$testphx['ID'];
  16. }
  17.  
  18. ?>
  19. <?php if(is_single($test4x)) { ?>
  20.     <div id="outer">
  21.     <div id="main" class="clearfix">
  22.     <div class="whitecontent" style="min-height:300px; padding-left:11px; padding-right:13px; padding-top:20px;">
  23.             <div class="hrightcol2">
  24.             <?php
  25.             /* Run the loop to output the page.
  26.              * If you want to overload this in a child theme then include a file
  27.              * called loop-page.php and that will be used instead.
  28.              */
  29.             get_template_part( 'loop', 'single' );
  30.             ?>
  31.             </div>
  32.         <div style="clear:both;"></div>
  33.     </div>
  34. <?php } else { ?>
  35. <div id="outer">
  36.  
  37.     <div id="main" class="clearfix">
  38.    
  39.     <div class="whitecontent" style="min-height:300px; padding-left:11px; padding-right:13px; padding-top:20px;">
  40.     <div class="rmidcol2">
  41.             <?php
  42.             /* Run the loop to output the post.
  43.              * If you want to overload this in a child theme then include a file
  44.              * called loop-single.php and that will be used instead.
  45.              */
  46.             get_template_part( 'loop', 'single' );
  47.             ?>
  48.     </div>
  49.     <?php get_sidebar(); ?>
  50.         <div style="clear:both;"></div>
  51.     </div>
  52.     <?php } ?>
  53. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement