Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * The Template for displaying all single posts.
- *
- * @package WordPress
- * @subpackage twentyten
- * @since Twenty Ten 1.0
- */
- get_header();
- $posts3x = get_posts(array('category' => 14));
- foreach ($posts3x as $hardikx)
- {
- $testphx=get_object_vars($hardikx);
- $test4x[]=$testphx['ID'];
- }
- ?>
- <?php if(is_single($test4x)) { ?>
- <div id="outer">
- <div id="main" class="clearfix">
- <div class="whitecontent" style="min-height:300px; padding-left:11px; padding-right:13px; padding-top:20px;">
- <div class="hrightcol2">
- <?php
- /* Run the loop to output the page.
- * If you want to overload this in a child theme then include a file
- * called loop-page.php and that will be used instead.
- */
- get_template_part( 'loop', 'single' );
- ?>
- </div>
- <div style="clear:both;"></div>
- </div>
- <?php } else { ?>
- <div id="outer">
- <div id="main" class="clearfix">
- <div class="whitecontent" style="min-height:300px; padding-left:11px; padding-right:13px; padding-top:20px;">
- <div class="rmidcol2">
- <?php
- /* Run the loop to output the post.
- * If you want to overload this in a child theme then include a file
- * called loop-single.php and that will be used instead.
- */
- get_template_part( 'loop', 'single' );
- ?>
- </div>
- <?php get_sidebar(); ?>
- <div style="clear:both;"></div>
- </div>
- <?php } ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement