Forums

Blank Page - template - no idea why (2 posts)

  1. bluejam
    Member
    Posted 6 months ago #

    Hi,

    The issue is here:

    http://www.citirecruitment.com/?page_id=20

    This page displays all the blog posts - and uses a page_blog.php template file. It works fine. I then have different sub-blogs that only list specific catagories such as:

    http://www.citirecruitment.com/?page_id=113 - Mining Blog
    http://www.citirecruitment.com/?page_id=117 - Recruitment

    To do this I made a copy of the page_blog.php and renamed it to page_blog_mining.php and point the posts to that specific template. In the normal blog template file it uses this:

    Normal Blog Template:

    <?php
    $temp = $wp_query;
    $wp_query= null;
    $wp_query = new WP_Query();
    $wp_query->query('showposts=10'.'&amp;paged='.$paged);
    ?>
    <?php if ($wp_query->have_posts()) : while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
    <?php global $more; $more = 0; ?>

    And to show specific catergories e.g. Mining Blog Template

    '$temp = $wp_query;
    $wp_query= null;
    $wp_query = new WP_Query();
    $wp_query->query('showposts=10'.'&amp;paged='.$paged);
    ?>
    <?php query_posts('category_name=mining&amp;showposts=10'); ?>
    <?php if ($wp_query->have_posts()) : while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
    <?php global $more; $more = 0; ?>

    This worked fine until only a few days ago - now when you click the sub-blog file eg:
    http://www.citirecruitment.com/?page_id=113 - Mining Blog

    It goes to a blank page with no errors or source code. No files have been changed (for 4 months) and this worked great until a few days ago. I'm at a loss to troubleshoot this because i can't view any errors - there is no point of reference. I deactivated any recently installed plugins - which had no effect.

    Is there a error log file i can look at - i just don't know why its stopped working now....

    thanks in advance.

  2. LeaseahB
    Member
    Posted 1 month ago #

    I'm sure you've probably "fixed" this by now, but I just had the same problem on a blog. If I took out the query_posts line, it displayed (though not what I wanted). The blog was running 2.8.3 and I just upgraded it to 2.8.4 and everything works now. Not sure what was wrong!

    Lisa B.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.