Index-like page on a Page
-
I’m trying to display on a Page a list of posts – such way, that’s to see on the default index page. But… I don’t understand why WordPress does it elseway than I need :).
The code:
$mq = new WP_Query(‘showposts=5’);
if ($mq->have_posts()) : while ($mq->have_posts()) : $mq->the_post();
?><h2><?php the_title(); ?></h2><?php
the_content(‘more’);
endwhile; endif ?>1) Content is displayed whole – not only to the “more” sign & without the “more link”. Why?
2) Second – I’d like to know how to build the query so that the previous/next links after the loop are displayed correctly (now, they are not visible – I guess it has something with the query…).Thank you for your help.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Index-like page on a Page’ is closed to new replies.