Sunday, May 8, 2011

How to call the Perticular category in different format by using single.php file



<?php } elseif (is_single( array( 661, 1, 513, 668) )){?>  

 <div id="content">
      <div class="innerPage">
       <div class="leftlinks">
         <div class="links_heading"><h2>App Development</h2></div>
          <div class="links">
       <ul>
                <?php //$my_query = new WP_Query('category_name=Products&post_status=publish');?>
             <li><a href="http://www.skyhawk.co/test/?p=661">White Label Website</a>   </li>
<li><a href="http://www.skyhawk.co/test/?p=1">Mercury Server</a>               </li>
    <li>        <a href="http://www.skyhawk.co/test/?p=513">custom development</a>       </li>
     <li><a href="http://www.skyhawk.co/test/?p=668">Airtime packages</a>   </li>
            </div>    </div>
            <div class="right_panel">
         <div class="right_content">
<?php wp_list_bookmarks('category_name=Links&title_li=&category_before=&category_after='); ?>
                                <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
                                                <h2><?php the_title(); ?></h2>                                              
                                <?php the_content(); ?>
<?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?>
                                <?php endwhile; ?>
          </div>
        </div>
</div>
 </div>
    <?php } else {?>
<div id="content">
                <div class="leftPart linksleftpart">
                                                <div class="leftPart linksleftpart">
                                                <?php wp_list_bookmarks('category_name=Links&title_li=&category_before=&category_after='); ?>
                                                </div>  </div>
        <div class="rightPart linksrightpart">
                                                <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
                                                <h1><?php the_title(); ?></h1>
                                                <div class="divider"></div>
                                                <div class=""><?php the_content(); ?></div>
<?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?>                                                <?php endwhile; ?>        </div></div>

No comments:

Post a Comment