WP 2.1 Causes Problems in PHP Widgets
-
I just upgraded to WP 2.1. I was/am running the Executable PHP Widget (http://ottodestruct.com/) and had three instances in my sidebars all working fine before the upgrade, but only one of them works now that I’ve upgraded. The two bits of code that don’t work are pretty basic PHP. Post-upgrade, they are not producing errors, but neither are they working the way that did before the upgrade, and I can’t understand what would be wrong. I’d appreciate any advice. Here are the details:
1) This bit of code gave me a list of all my top-level categories with no subcategories.
-
<?php wp_list_cats(‘sort_column=ID&children=0&list=1&hide_empty=0’); ?>
But now, I get my full, hierarchicalized category list!
2) This bit of code put a logo on the particular pages noted, while putting nothing in that widget spot on any other posts/pages:
<?php if (is_page(‘140’)||is_page(‘141’)||is_page(‘142’)||is_page(‘143’)||is_page(‘156’)||is_page(‘234′)) { echo “<p style=\”text-align: center;\”><img id=’image180′ src=’/media/potluck-creative-arts-logo-150-wide.png’ alt=’Potluck Creative Arts’ /></p>”; } ?>
Now, nothing shows up even on the indicated pages!
- The topic ‘WP 2.1 Causes Problems in PHP Widgets’ is closed to new replies.