WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] IE6 and query_posts: fail. (7 posts)

  1. syrupcore
    Member
    Posted 6 years ago #

    This is weird. I have some tabs on the homepage. I'm populating the tabs with specific blog posts. For some reason, this isn't outputting any content in IE6 and safari. Works fine in FF.

    <?
    	query_posts('p=36');
    	while (have_posts()) : the_post();
    	  the_content();
    	endwhile;
    ?>

    This isn't a css issue. View Source shows the containing <div>s as empty but view source in FF shows the content in the <div>s. I mean, I know this doesn't make sense - this should all be resolved long before the browser knows the difference but man, it's just not there!

    Is there another/better way to get a single post that I might should try? There are actually 5 different calls likes that to fill each tab. I tried removing all but one but it didn't make a difference.

    Thanks for any thoughts.

    Will

  2. stvwlf
    Member
    Posted 6 years ago #

    I've used a plugin call Get A Post to display just one post. Working in 2.5.1 even though its old

    http://guff.szub.net/2005/01/27/get-a-post/

    What is your blog URL?

  3. iridiax
    Member
    Posted 6 years ago #

    Try using <?php

  4. syrupcore
    Member
    Posted 6 years ago #

    thanks. I'll look into that plugin. Seems like I shouldn't need one though. Site isn't posted anywhere yet, still in local dev.

    <?php didn't work either but I am starting to wonder if perhaps it has to do with my local instance of apache/php.

    Should also note that even with calls to css and js removed, I'm still having this problem. Since it's not making it to the browser in ie6/safari, I'm wondering if it has something to do with the headers being sent but hell, I'm just grasping at straws at this point.

    Thanks,
    Will

  5. syrupcore
    Member
    Posted 6 years ago #

    Got it. The posts I was trying to retrieve were set as "unpublished". As I was first setting up the tabs, I had mistakenly left one unpublished and it appeared in FF. I thought, "oh cool, I can make a direct call to an unpublished post but it wont appear in nav and the like" - exactly what I wanted, easy! Alas, FF was the only browser that rendered them.

    See, I still don't understand how/why. I just noticed I'm still running PHP/4.3.11, that might be part of the problem. Dunno.

    If no one can explain it and some one else can verify what happened by running a little test locally, I'll post a bug.

    Thanks,
    Will

  6. syrupcore
    Member
    Posted 6 years ago #

    guess I'll just resolve it.

  7. syrupcore
    Member
    Posted 6 years ago #

    I'm dumb. It's because I was logged into FF and if you're logged in, you can see posts with the status of "unpublished".

    :)

Topic Closed

This topic has been closed to new replies.

About this Topic