Forums

Query Posts and IE7 (6 posts)

  1. mrapino
    Member
    Posted 1 year ago #

    Hello,

    I just developed a website, and everything looks great in Firefox 3.6.13, IE8, and IE8 Compatibility Mode, but I am having an issue with IE7.

    I have the following code on the homepage of the website:

    <?php query_posts('p=358'); ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <?php the_content(); ?>
    <?php endwhile; endif; ?>
    <?php wp_reset_query(); ?>

    This is supposed to pull content that I have in a post into a specific area on the homepage, but it is not working in IE7.

    I was hoping to get some insight.

    Thanks!

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    It's far more likely to be a CSS issue than a code issue.

  3. mrapino
    Member
    Posted 1 year ago #

    I have an update:

    The post has to be published in IE7, but I can keep it a draft in other browsers.

    Is there a way to hide the posts that I am using to pull information into specific areas of the website?

    OR

    Is there a better way to create an "editable area" on a site?

    Thanks!

  4. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    You can't publish a post in specific browsers and hide it from other browsers. It's either published or it isn't. Other than that, I'm not sure what you are asking.

  5. mrapino
    Member
    Posted 1 year ago #

    No, what I am saying is that the only browser that requires the post to be published in order for the query to work is IE7 ... all other browsers I have tested on allow me to keep the post as a draft, and the content still shows up in the respective area on the site.

    This is a predicament, because I do not want to actually publish the post AS a post ... I want to use the post as a way to stream specific content into specific areas. Hence my question, and I will ask it again, is there a better way to create an "editable area" on a site other than creating a post and querying that post?

    If using posts to do this is the best viable solution, maybe you can tell me how I can avoid publishing the post, because IE7 doesn't like keeping the post as a draft, as demonstrated by the absence of the content on the site until the post was published.

    Thanks...

  6. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    is there a better way to create an "editable area" on a site other than creating a post and querying that post?

    No. Publish the post then exclude it from all other pages. Or try creating a custom query that actually set the post_status to draft rather than using the default setting of published when the post in question is, in fact, still set to draft.

Topic Closed

This topic has been closed to new replies.

About this Topic