POST POST and POST
-
OK so i know have this code here which lets me echo out a specific post
`<?php
// retrieve one post with an ID of 1
query_posts(‘p=1’);
global $more;
$more = 0;
// the Loop
while (have_posts()) : the_post();
// the content of the post
the_content();
endwhile;
?>`How would i use it to view other post for example p=2 and p=3?? ,because i would like to show them in different <divs>.
`<div id=”1″>
// p1 here
</div><div id=”1″>
// p2 here
</div><div id=”1″>
// p3 here
</div>`Or there is another way? please help
- The topic ‘POST POST and POST’ is closed to new replies.