Forums

wordpress loop on homepage, display issues in some browsers (1 post)

  1. PetterCS
    Member
    Posted 6 months ago #

    I've recently installed an MU installation on wordpress on our server, to have as a blog (http://www.tamam.se/blog) but we're still running our normal homepage, http://www.tamam.se on the same server. On some of the pages, I've included a wordpress loop displaying posts from that category (e.g international-->albania).

    This is the code:

    <?php
    // Include WordPress
    define('WP_USE_THEMES', false);
    require('../blog/wp-load.php');
    query_posts (array ('tag' => 'albanien', 'showposts' => '3') );
    ?>
    
    <?php while (have_posts()): the_post(); ?>
    <h2><?php the_title(); ?></h2>
    <div class="entry">
    <p><?php the_excerpt('Read the rest of this entry &raquo;'); ?></p>
    </div>
    <?php endwhile; ?>

    Now, here's the wierd part. In some browsers, it displays perfectly normally, e.g. in my chrome and safari for mac (latest versions), but in fireox, sometimes the post doesn't display and everything below disappears, i.e. the footer. And, when you try to click on the page from the menu, it just redirects to the main blog page (tamam.se/blog). Bit, if you go straight to the URL http://www.tamam.se/swe/albania_swe.php it looks fine, more often than not, AND after that you can click on any of the other pages displaying blogs in the menu without trouble, and everything displays correctly.

    Before I also had a loop feed displayinng headlines of posts in the sidebar, and it would cut out the whole sidebar and footer if you just went to http://www.tamam.se, but if I went straight to any permalink within the website (like http://www.tamam.se/swe/albania_swe.php) it would display and from then on display correctly on all pages....

    I'm very confused and would much appreciate help!

Reply

You must log in to post.

About this Topic