← WordPress

Problema no código da sidebar

Lida 1918 vezes

Offline

Diogo Oliveira 
Membro
Mensagens 1111 Gostos 3
Feedback +5

Troféus totais: 29
Trófeus: (Ver todos)
Windows User Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5 Level 4 Level 3

Viva pessoal,

Andei a fazer algumas alterações na sidebar do meu tema de Wordpress, e agora passado uns tempos reparei que o Arquivo e os Links que era suposto aparecerem por baixo da caixa de pesquisa não estão a aparecer.

Site: http://www.abstractosfera.com

Código sidebar.php:
Código: [Seleccione]
<div id="right_col">

  <?php $options get_option('mc_options'); ?>
 
  <?php if ($options['show_information']) : ?>
  <div id="information_area" class="clearfix" align="center">

<div align="center">
<a href="http://www.twitter.com/abstractosfera/" target="_blank"><img src="wp-content/themes/monochrome-pt/img/logos_sociais_twitter.png" /></a>
</div>

<div align="center">
<a href="http://feeds.feedburner.com/Abstractosfera" target="_blank"><img src="wp-content/themes/monochrome-pt/img/logos_sociais_rss.png" /></a>
</div>

<br />

 <div align="center"><script type="text/javascript"><!--
google_ad_client = "pub-6790878366580938";
/* 200x200, criado 08/05/10 */
google_ad_slot = "6820204376";
google_ad_width = 200;
google_ad_height = 200;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
   <?php if ($options['rss_feed']) : ?>
   <div id="entries_rss">
   </div>
   <?php endif; ?>
  </div>
  <?php endif; ?>

  <?php if($options['search_position'] == 'top') { ?>
  <div class="side_box" id="search_area_top">
   

   <?php if ($options['tag_list']) : ?>
   <div id="tag_list" class="clearfix">
    <a href="javascript:void(0);" class="search_tag"><?php _e('LISTA DE TAGS','monochrome'); ?></a>
    <?php wp_tag_cloud('smallest=11&largest=11&number=30&orderby=count&unit=px&format=list'); ?>
   </div>
   <?php endif; ?>
  </div>
  <?php ?>

  <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>

   <div class="side_box">
   <h3><?php _e('Artigos Recentes','monochrome'); ?></h3>
    <ul>
<?php $myposts get_posts('numberposts=5'); foreach($myposts as $post) : ?>
     <li class="side_date"><?php the_time('d/m/Y'?></li>
     <li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
<?php endforeach; ?>
   </ul>
 </div>

   <div class="side_box">
   <h3><?php _e('Arquivo','monochrome'); ?></h3>
   <ul>
    <?php wp_get_archives('type=monthly'); ?>
   </ul>
   </div>

   <div class="side_box">
   <h3><?php _e('Links','monochrome'); ?></h3>
   <ul>
    <?php wp_list_bookmarks('title_li=&categorize=0'); ?>
   </ul>
   </div>

<?php endif; ?>

  <?php if($options['search_position'] == 'bottom') { ?>
  <div class="side_box" id="search_area_bottom">
  <h3><?php _e('PESQUISA','monochrome'); ?></h3>
   <div id="search_area" class="clearfix">
    <form method="get" id="searchform" action="<?php bloginfo('home'); ?>/">
     <div><input type="text" value="<?php _e('Pesquisar','monochrome'); ?>" name="s" id="search_input" onfocus="this.value=''; changefc('white');" /></div>
     <div><input type="image" src="<?php bloginfo('template_url'); ?>/img/search_button_n.gif" alt="<?php _e('Pesquisar neste blog.','monochrome'); ?>" title="<?php _e('Pesquisar neste blog.','monochrome'); ?>" id="search_button" /></div>
    </form>
   </div>
   <?php if ($options['tag_list']) : ?>
   <div id="tag_list" class="clearfix">
    <a href="javascript:void(0);" class="search_tag"><?php _e('LISTA DE TAGS','monochrome'); ?></a>
    <?php wp_tag_cloud('smallest=11&largest=11&number=30&orderby=count&unit=px&format=list'); ?>
   </div>
   <?php endif; ?>
  </div>
  <?php ?>

</div><!-- #right_col end -->


Alguma ideia do problema? Obrigado desde já.
Offline

Diogo Oliveira 
Membro
Mensagens 1111 Gostos 3
Feedback +5

Troféus totais: 29
Trófeus: (Ver todos)
Windows User Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5 Level 4 Level 3

Bom, já consegui resolver através dos Widgets :P Obrigado na mesma a quem perdeu tempo a ler isto.