Forums

latest posts displaying in two colomms? (3 posts)

  1. daand
    Member
    Posted 3 years ago #

    I am using a template tag to display my latest 5 post (excluding the latstes one):

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

    • "><?php the_title(); ?>
    • <?php endforeach; ?>

    Code can also be found here: http://codex.wordpress.org/Template_Tags/get_posts

    What i want is a bit difficult I think..
    Now when i insert the code, the 5 posts are each one a different row..
    I want two coloms where the posts are devided into.

    Example:

    Post 1 | Post 2
    Post 3 | Post 4
    Post 5 | Post 6

    Is this possible?
    #If you dont understand my please post your question here, i would really want this to work..

    Thanks in advance,
    Daan

  2. daand
    Member
    Posted 3 years ago #

    Figured it out...

    Close this one

  3. hello_kate
    Member
    Posted 2 years ago #

    I would really like to know how did you figure it out.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.