WordPress.org

Support

Support » Themes and Templates » [Resolved] making Page show index of posts?

[Resolved] making Page show index of posts?

  • I’m developing a site with WordPress, but it’s going to less blog-like by pointing the home page to a static Page. I intend one of the Pages to function as the gateway to the blog portion of the site (I’m calling this Page “Journal”).

    So I’d like that Page to display the index of posts like a normal install of WordPress would with index.php. Does that make sense? I’ve tried saving index.php as a new template file called journal.php and creating a Page called Journal with this template, but that doesn’t work.

    I’ve done some searching, but haven’t quite found what I’m looking for. (http://wordpress.org/support/topic/128991)

    Any ideas?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Aha, getting real close now. Just found this help here: http://wordpress.org/support/topic/110676?replies=15
    The post by doodlebee is most helpful:

    <?php if (is_home()) {query_posts('showposts=1');} ?>

    Except in my case, this page is NOT home. So I modify that line like:

    <?php {query_posts('showposts=10');} ?>

    And this displays the last 10 blog posts in that journal Page like I intended. The only thing not working is the full post is showed, even though those posts have the more tag used. That’s curious.

    Eureka! All solved. I did a little RTFM (http://codex.wordpress.org/Template_Tags/query_posts) and fixed it with a global $more. Magic.

    You are overcomplicating it…
    In your WP version (2.3.2) you just go the Options > Reading and you select a Page as your frontpage. Then your select another Page (let’s give it the title: Journal) as your posts page. Done.

    Both Pages can use custom Page templates – as described in the Codex > Pages.

    And no, the “more” tag is NOT intended to work on Pages, although several workarounds have been posted in the forum.

    Moshu… wow, I’m a dork. Sure enough, that works like a charm. I just didn’t take my time in reading up on those new 2.3.2 features. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] making Page show index of posts?’ is closed to new replies.
Skip to toolbar