How to excute category
-
1 – I want to execute some categories in second loop from following Code.
2 – I want to display only one or two categories in second loop from following Code.
Thz.I am waiting for your reply.<div class=”column1″><!– First Loop –>
<?php query_posts(“showposts=1&cat=1”); ?>
<?php if (have_posts()) : ?>- <?php while (have_posts()) : the_post(); ?>
- ” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?>
<p><?php the_content_rss(”, TRUE, ”, 22); ?>
<div style=”text-align:right;”>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”>ဆက္လက္ဖတ္ရႈရန္ »</div></p>
<?php $displayed = $post->ID;?><?php endwhile; ?>
<?php endif; ?>
<!– Second Loop –>
<?php
$page = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
query_posts(“cat=&paged=$page&posts_per_page=10”); ?>
<?php if (have_posts()) : ?>- <?php while (have_posts()) : the_post();
- ” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?>
if ($post->ID == $displayed) continue;?><?php endwhile; ?>
<?php endif; ?>
</div> - ” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘How to excute category’ is closed to new replies.