PhP Call Help
-
I am trying to set up a 2 column system. I can get the two column just fine but the problem is they repeat the same posts. Is there a way I can have one column pull the first 6 and the second to pull the next 6? I am using this as my code:
<?php
$my_query = new WP_Query(‘category_name= ‘. $category .’&showposts=6’);
while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID;
?>I am using this code in 2 separate divs to create the two columns.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘PhP Call Help’ is closed to new replies.