• I have been working on variations of the WP Category Posts and have discovered a very strange performance on the output of wp_cat_posts.

    Here is my code (hacked from others):

    [Moderated: Too much code. Please consider placing the code in a text file on your site with a link here -or- use a pastebin service such as https://wordpress.pastebin.ca. Thanks!]

    Any ideas why this is performing differently (such as inclusion of closing Paragraph tags or BR tags?

    This all started with strange formatting on the IE7 presentation on the different boxes. Check for yourself:

    https://www.balconyny.org

Viewing 6 replies - 1 through 6 (of 6 total)
  • WP doesn’t much care about what browser is being used — unless you’ve installed some niche plugin that *does*.

    That being said, a good place to start in these sorts of scenarios is getting your theme to validate.

    Thread Starter sdickert

    (@sdickert)

    Thank you – I will do that. But I am completely surprised that this is having such trouble. The code is in this post.

    Thread Starter sdickert

    (@sdickert)

    Handy – I did what you suggested – and still having the problem in IE7.

    You can see the WP Category Posts code at the following link:
    https://www.balconyny.org/wp_cat_posts.txt

    Any idea why the PHP would be generating different code for different browsers?

    Ok, I’ll backup a step from my earlier response.

    Get that CSS validating, that may help the different browsers interpret things!

    Thread Starter sdickert

    (@sdickert)

    Okay – that is resolved – but the challenge is the fact that the code is coming out differently for the two browsers – and I have no code that modifies the output based on the browser.

    See this comparison snippet from the two browsers:

    FF:

    <br><p style="border: 1px solid red;"><a href="https://www.balconyny.org/2008/01/22/spitzers-executive-budget-closes-the-deficit/" style="text-decoration: none;">lorumipsum</p><div style="margin: -10px 10px 0pt; text-align: right;"><a href="https://www.balconyny.org/2008/01/22/spitzers-executive-budget-closes-the-deficit/">more ?</a></div><br>

    IE:

    <br /></p><p style="border:1px solid red;"><a href="https://www.balconyny.org/2008/01/22/spitzers-executive-budget-closes-the-deficit/" style="text-decoration: none;">Spitzer's Executive Budget Closes the Deficit</a>lorumipsum<div style="text-align: right; margin: -10px 10px 0 10px;"><a href="https://www.balconyny.org/2008/01/22/spitzers-executive-budget-closes-the-deficit/">more &raquo;</a></div><br /></p>

    Note the inclusion of <p>s and </p>s and
    instead of <br>.

    I have not done anything to distinguish between browsers in the code as referenced. Why would the Source of the pages be different?

    Thread Starter sdickert

    (@sdickert)

    Interestingly enough – I downloaded debugbar and found that IE is installing additional tags on the page from the output. Very confused why it would add the extra tags.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WP2.3.2 puts out different code for FF than IE?’ is closed to new replies.