Just upgraded to WP 2.7.1 from 2.3.3 and I am getting an error – no sidebars show at all.
I previously used plug-in Exec PHP 4.9. When I try to activate it all my front page posts disappear. Without it activated I get the following error:
Fatal error: Call to undefined function: tla_ads() in /home/content/v/e/l/veliapola/html/wp-content/themes/w2_dnd/sidebar.php on line 45
I also tried eliminating any widgets with code in them but still no sidebars show and I still get the error.
This is my sidebar code:
‘ <div id=”sidebar”>
<?php if (is_home()) { ?>
<?php } ?>
<?php if ( (is_archive()) or (is_search()) or (is_paged()) or (is_page()) or (is_category()) or (is_single()) or ($notfound == ‘1’) ) { ?>
<h3>recent posts</h3>
<?php query_posts(‘showposts=7’); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- “><?php the_title() ?>
<?php endwhile; endif; ?>
<script type=”text/javascript”><!–
google_ad_client = “pub-1147445779577085”;
/* 336×280, created 4/17/08 */
google_ad_slot = “0730569478”;
google_ad_width = 336;
google_ad_height = 280;
//–>
</script>
<script type=”text/javascript”
src=”https://pagead2.googlesyndication.com/pagead/show_ads.js”>
</script>
<?php } ?>
<div class=”sbwidgets”>
<ul id=”sidebarright”>
<?php if( is_home() ) tla_ads(); ?>
<?php /* daniels_archive_dropdown(); */ ?>
<?php if ( !function_exists(‘dynamic_sidebar’)
|| !dynamic_sidebar(2) ) : ?>
<li id=”archives”>
<h3>Archives</h3>
<li id=”rsslinks”>
<h3>Syndication</h3>
<li id=”meta”>
<h3>Meta</h3>
<?php wp_register(); ?>
<?php wp_loginout(); ?>
-
WordPress
-
<?php wp_meta(); ?>
<?php endif; ?>
<ul id=”sidebarleft”>
<!– Start AWSOM Archive Output –>
<?php if (function_exists(‘display_my_awsom_archive_custom’)) { display_my_awsom_archive_custom(); } ?>
<!– End AWSOM Archive Output –>
<?php if ( !function_exists(‘dynamic_sidebar’)
|| !dynamic_sidebar(1) ) : ?>
<li id=”links”>
<h3>Links</h3>
<?php endif; ?>
-
<?php if (function_exists(‘wp_theme_switcher’)) { ?>
<h3><?php _e(‘The Themes’ ); ?></h3>
<?php wp_theme_switcher(); ?>
<?php } ?>
</div><!– end sbwidgets–>
</div><!–end sidebar–> ‘
my site is at https://golfforethegood.org
Thanks, anyone, for any fix!