display multiple posts by ID
-
Hi, i need a bit of help, im trying to show multiple posts on my homepage by post id, when i try to ask it for multiple posts it will only show 1, however, whe i ask it to show multiple posts by tag id it will show them
heres what ive got
<?php $count = 0; $duplicated = array(); $cats = get_categories(); foreach ($cats as $cat) { $the_query = new WP_Query('showposts=3&posts_per_page-1&p=43,41).'.$post->cat_id); while ($the_query->have_posts()) : $the_query->the_post(); $do_not_duplicate = $post->ID; ?>
is this possible to do in WP or will i have to just show them by tag id, i want to be able to control what is shown on the homepage.
probably a simple answer but ive been looking at it for so long i think ive driven myself insane
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘display multiple posts by ID’ is closed to new replies.