• Resolved electrolund

    (@electrolund)


    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. (https://www.ads-software.com/support/topic/128991)

    Any ideas?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter electrolund

    (@electrolund)

    Aha, getting real close now. Just found this help here: https://www.ads-software.com/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.

    Thread Starter electrolund

    (@electrolund)

    Eureka! All solved. I did a little RTFM (https://codex.www.ads-software.com/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.

    Thread Starter electrolund

    (@electrolund)

    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 ‘making Page show index of posts?’ is closed to new replies.