Forums

[resolved] Static Template blog not working (3 posts)

  1. sustydana
    Member
    Posted 1 month ago #

    Here is the setup:

    http://www.domainname.com = static homepage = template: home-page
    http://www.domainname.com/blog = blog = template: blog-page

    Reading settings:
    "A static page"
    Front Page = home
    Blog Page = blog

    My home page shows up fine. Blog page doesn't display posts.
    Blog page does display the comment box. Permalink is "Blog" with a link to "www.domainname.com/blog".

    When I add a "query-post" before the loop. It displays the number of posts. But then all the post displaying on the blog-page can't be viewed alone.

    Here is another think I did to troubleshoot:

    I changed the blog.php to index.php and uploaded it to a fresh install and all the posts showed up just fine.

    ________

    Here are the files I have:
    - blog.php (template)
    - header.php
    - sidebar.php
    - home.php (template)
    - index.php (blank)

  2. sustydana
    Member
    Posted 1 month ago #

    Any help appreciated. Thanks in advance.

  3. sustydana
    Member
    Posted 1 month ago #

    Okay I just wanna post my solution in case...any one else has this problem.

    I placed: <?php query_posts('showposts=10'); ?> before the loop in blog.php (template for the http://www.domainname.com/blog).

    My reading settings are default.

    I also added a page.php (I need this in order for it to work right the query_post). If you don't know what to include in your page.php use one from another theme so you can see how it works. That will give you an idea as to what goes into that template page.

    Hope that helps --- works for me.

Reply

You must log in to post.

About this Topic