• Hi all,
    this is what I’m trying to do:
    1. have a wordpress website with index page displaying full content of recent posts
    2. have a wordpress page called “weblog” which will display excerpt of all posts (much like archives page) – paginated (with previous and next entries)

    This “weblog” page uses a custom template (I reuse index page with excerpt instead content), unfortunately the pagination using post_nav_link is not working on this Page – page 2 and above is not accessible (page not found)

    I could not tell what the problem is – the htaccess is rewritable (because I could change the permalink address).

    Could anyone give me a hint what sort of problem or tips on how to resolve this? Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • 2. have a wordpress page called “weblog” which will display excerpt of all posts (much like archives page) – paginated (with previous and next entries)

    It will not. If it’s a Page.

    Thread Starter zudoku

    (@zudoku)

    Hi moshu,
    I stuck to that problem earlier – but I manage to solve it using this method

    ‘<?php query_posts(‘cat=-0’); //gets all posts
    load_template( TEMPLATEPATH . ‘/weblog.php’); //loads index
    ?>’

    I’m curious to know if there’s a way/plugin to have paginated wordpress Page.

    The reason is because I’d like to use WordPress as CMS – I’d like to manage all my site structure (index, weblog, portfolio, contact) via wordpress.

    Thanks!

    Thread Starter zudoku

    (@zudoku)

    Just want to add that the issue comes from this section ” Making your blog appear in a non-root folder”

    I have WordPress running at http://example.com/wp. Suppose further that you want your blog to be located at http://example.com/wp/blog/ and that you want other pages to be available at http://example.com/wp/page1/

    Thus I use the same code recommended

    <?php
    /*
    Template Name: Blog
    */
    ?>

    <?php query_posts(‘cat=-0’); //gets all posts
    load_template( TEMPLATEPATH . ‘/index.php’); //loads index
    ?>

    But the navigation for previous/next page defined in my index template is not working. Thus, I wonder if the code recommended wrong?

    As far as I know the next/prev is looking for the index.php and you have different filenames – so I am afraid it will not work.

    Hi,
    I think there’s definitely a problem with the post_nav_link, as I have a similar problem with it:
    http://wordpress.org/support/topic/65201?replies=2
    and I searched around and it seems that everyone are a bit hazy with this function. could any of the moderators here find a remedy?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Page not found using “posts_nav_link” within the loop in WP Pages’ is closed to new replies.