• Resolved Mark

    (@encryptdesigns)


    For whatever reason I can only get ONE POST to show up and its the EARLIEST post. I want to show ALL the posts in category 3.

    Any ideas?

    I am using this code:

    <?php $posts = get_posts('numberposts=10&offset=0&category=3'); foreach($posts as $post) setup_postdata($post); ?>
    <?php the_time('F jS, Y') ?>
    <b><?php the_title(); ?></b>
    <?php the_content(); ?>

    If I change the timestamp on either post to be an earlier date then it shows up but the other one doesn’t….I have looked high and low for something like this and haven’t gotten the foggiest on figuring this one out:/

    Any help is appreciated!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Mark

    (@encryptdesigns)

    there has to be some code, but i can’t find anything:\

    The foreach isn’t properly set to “loop”. Try this:

    <?php $posts = get_posts('numberposts=10&offset=0&category=3'); foreach($posts as $post) : setup_postdata($post); ?>
    <?php the_time('F jS, Y') ?>
    <b><?php the_title(); ?></b>
    <?php the_content(); ?>
    <?php endforeach; ?>

    Thread Starter Mark

    (@encryptdesigns)

    I knew it had something to do with that code, thank you oh soo much!!

    Lots of Love for people like you.

    If you need any design work done a la custom graphics, or anything let me know!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘External page pulling WP date, but only one post??’ is closed to new replies.