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.
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.
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.
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.
I know that you know that - it was just a way of saying:I know I have to change the php code and that the first two posts need other css classes.
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)
You must log in to post.