Forums

First two posts side by side (4 posts)

  1. Hanna
    Member
    Posted 3 months ago #

    Does anyone know how I can get my template to show the first two posts side by side? Been trying to find a solution on google, but have had no luck there.

  2. alchymyth
    The Sweeper
    Posted 3 months ago #

    you might need to change the php code in the template to provide specific css classes and the styles to do that.

    please post a link to your site.

  3. Hanna
    Member
    Posted 3 months ago #

    I know I have to change the php code and that the first two posts need other css classes.

    Site is not live yet. I'm still working on the template.

  4. alchymyth
    The Sweeper
    Posted 3 months ago #

    I know I have to change the php code and that the first two posts need other css classes.

    I know that you know that - it was just a way of saying:
    without more information, your question is too generic to make any useful suggestions.

    are there more than two posts in the page, and how are the other posts to be shown?
    is this design for all index/archive pages, including the paginated ones?

    can you provide the code of the template so far ?

    please use the pastebin.com - see http://codex.wordpress.org/Forum_Welcome#Posting_Code

    general idea:
    you can use the output of the $wp_query->current_post variable in the loop to get the position of the post ?(it starts with 0 zero for the first post in the loop)

Reply

You must log in to post.

About this Topic