El footer de el tema que funciona bien es asi:
Código PHP:
Ver original</div>
<?php wp_reset_query(); ?>
<?php $showgallery1 = get_settings ( "cp_showpostgallery" );
$showgallery2 = get_settings ( "cp_showarchivegallery" );
if ( (is_home()) || (is_search() && $showheadline2 != "no") || (is_archive() && $showgallery2 != "no") || (is_single() && $showgallery1 != "no") ) { ?>
<style type="text/css">
<!--
.Estilo4 {
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
font-weight: bold;
color: #FFFFFF;
}
.Estilo5 {font-size: 11px; color: #FFFFFF; font-family: Arial, Helvetica, sans-serif;}
-->
</style>
<div id="gallery" class="clearfloat">
<div id="video">
<?php $ar_video = get_settings( "ar_video" );
if( $ar_video == 0 ) { $ar_video = $cp_categories[0]->cat_ID; }
query_posts( 'showposts=1&cat=' . $ar_video ); ?>
<?php while (have_posts()) : the_post(); ?>
</div>
<?php endwhile; ?></div>
</div>
</div>
<?php } ?>
<center>
<div id="fin"></div>
</center>
</body>
</html>
Y el que no funciona es asi:
Código PHP:
Ver original</div>
<?php wp_reset_query(); ?>
<?php $showgallery1 = get_settings ( "cp_showpostgallery" );
$showgallery2 = get_settings ( "cp_showarchivegallery" );
if ( (is_home()) || (is_search() && $showheadline2 != "no") || (is_archive() && $showgallery2 != "no") || (is_single() && $showgallery1 != "no") ) { ?>
<style type="text/css">
<!--
.Estilo4 {
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
font-weight: bold;
color: #FFFFFF;
}
.Estilo5 {font-size: 11px; color: #FFFFFF; font-family: Arial, Helvetica, sans-serif;}
-->
</style>
<div id="gallery" class="clearfloat">
<div id="video">
<?php $ar_video = get_settings( "ar_video" );
if( $ar_video == 0 ) { $ar_video = $cp_categories[0]->cat_ID; }
query_posts( 'showposts=1&cat=' . $ar_video ); ?>
<?php while (have_posts()) : the_post(); ?>
</div>
<?php endwhile; ?></div>
</div>
</div>
<?php } ?>
<center>
<div id="fin"></div>
</center>
</body>
</html>
No encuentro la diferencia