WordPress.org

Ready to get started?Download WordPress

Forums

URL Problem with Next and previous entries (1 post)

  1. dlakme
    Member
    Posted 7 years ago #

    Site URL: http://www.praguebuzz.com/

    Click on next and previous entrylink at the bottom of the home page and the URL changes to this:

    http://www.praguebuzz.com/blog/page/2/
    http://www.praguebuzz.com/blog/page/3/

    Which showing the same current blog entries.

    Here what I did:

    1. I have a home.php in the theme folder (wp-content/theme)
    2. I have a blog.php template (in the theme folder) and make a static page with the name "Blog" based on the blog template.

    My Blog template code (get it from this forum)

    <?php
    /*
    Template Name: Blog.php
    */
    ?>
    
    <?php query_posts('cat=-0'); //gets all posts
        load_template( TEMPLATEPATH . '/index.php'); //loads index
     ?>

    Please help.

    Thanks a lot

Topic Closed

This topic has been closed to new replies.

About this Topic