browsers not liking php code widget

Discussion in 'WordPress' started by sixrfan, Feb 11, 2011.

  1. #1
    on this site i have the php below code in the 2nd left-hand widget (Products), which reports back the categories and how many items are in them.

    <?php wp_list_categories('title_li=&child_of=4&show_count=1&exclude=90,5' ); ?> 
    
    <?php wp_list_categories('title_li=&child_of=4&show_count=1&exclude=48,5' ); ?>
    PHP:
    when you view it in Firefox or Safari everything looks great. But in IE and Chrome, you'll notice everything is all out of whack. I've tried a number of different "PHP code widget execution" type plugins and all have the same problem. So I guess its not a problem with the plugin, but how the site is interpreting the php code in a sidebar widget???

    Please advise. Thanks in advance.
     
    sixrfan, Feb 11, 2011 IP
  2. kiramanic

    kiramanic Peon

    Messages:
    205
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hmm, the markup is completely different in IE and Chrome to the way it is in FF so there's obviously something dodgy going on. Since you said you've tried a number of PHP plugins my first instinct would be to change back to the default Twenty Ten theme and see how things look in there, to rule out a theme-related problem.
     
    kiramanic, Feb 11, 2011 IP
  3. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It is a weird problem. In IE, the widgets get placed outside of the Primary unordered list element <UL>, but they are right where they should be in Firefox. I have used PhpExec a couple of years ago and never encountered that type of problem.
     
    Dodger, Feb 12, 2011 IP
  4. otjutt

    otjutt Member

    Messages:
    166
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    33
    #4
    err... complex :(
     
    otjutt, Feb 12, 2011 IP
  5. sixrfan

    sixrfan Well-Known Member

    Messages:
    354
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    101
    #5
    i switched to a new php code widget, inPHP, which seems to be working. thanks!
     
    sixrfan, Feb 14, 2011 IP