• Resolved sustydana

    (@sustydana)


    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)

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter sustydana

    (@sustydana)

    Any help appreciated. Thanks in advance.

    Thread Starter sustydana

    (@sustydana)

    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.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Static Template blog not working’ is closed to new replies.