WordPress.org

Support

Support » How-To and Troubleshooting » jefte.net How is this made?

jefte.net How is this made?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Not quite sure what you’re referring to. What exactly is the ‘multiple categories’? Do you mean how posts continue over two columns?

    yes

    Here’s the theory. Sorry, no code post tonight but hopefully you’ll find an example somewhere.

    Ok, he’s got 2 columns each with 5 posts. 1-5 runs in the left column and 6-10 runs in the middle column. There’s two ways to split posts like this.

    1. Use PHP to count the number of posts as you go through the loop. So you’d create <div id="narrowcolumn1"> and then loop through 5 posts. Then you'd close narrowcolumn (</div>) and open <div id=”narrowcolumn2″>. When PHP has counted off 5 more posts you'll close narrowcolumn2 (</div>`).

    2. Use can have WordPress run multiple queries. So you’d run 1 loop with a max of 5 posts. Then you’d run another loop also with a max of 5 (but starting at the 6th post). You’ll probably find some information on the codex.

    Sorry ’bout the lack of concrete examples. If I get some time I’ll swing back.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘jefte.net How is this made?’ is closed to new replies.
Skip to toolbar