• Hi all,

    I have the piece of code below which displays the latest posts. I have added ‘<?php the_category(‘, ‘); ?>’ to show which category it is located. However, the code below will only show posts that are featured in ‘uncategorized’.

    <div class=”blog_posts”>
    <div id=”lefthand”><?php the_category(‘, ‘); ?></div>
    <div id=”righthand”>“><?php the_title(); ?>
    <?php the_excerpt(); ?></div>
    <div style=”clear:both”></div>
    </div>

    Any way around this?

Viewing 1 replies (of 1 total)
  • Thread Starter denzel2364

    (@denzel2364)

    Soz guys,

    forgot this references what is loaded into the list:

    <?php
     global $post;
     $myposts = get_posts('numberposts=5&offset=1');
     foreach($myposts as $post) :
       setup_postdata($post);
     ?>

    Therefore i just removed ‘&category=1’

Viewing 1 replies (of 1 total)
  • The topic ‘Top 5 posts only show 'Uncategoized'’ is closed to new replies.