single php yi koy buraya.Edit yapmışssın..
Sorun İe de varmı sadece firefox damı
bu temanın orjinalinde sağ tarafta rastgele video olayı yok.ben deneme yanılma yoluyla başka temalardan kodlar alarak entegre etmeye çalıştım.
sorun browser ile ilgili değil.kodlama ile ilgili.benim koyduğum kodlar belli bir video sayısını yazınca o kadar gösteren bir kod(ben 8 video yapmıştım).bunda bir sorun yok.ben o kodun 3.5.8 gibi standart bir sayı değilde otomatik olmasını istiyorum.
başka bir deyişle sağ bölümün uzunluğuna göre orayı dolduracak random (rastgele) video sayısının(showposts) standart bir sayı değilde otomatik olmasını istiyorum <?php /** * @package WordPress * @subpackage Default_Theme */ global $shortname; ?> <!-- sidebar_single --> <div id="sidebar_single"> <!-- sidebar_widgets --> <div class="sidebar_widgets"> <ul> <?php /* Widgetized sidebar, if you have the plugin installed. */ if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(2) ) : ?>
</li> <?php endif; ?> </ul> </div>
<!-- /sidebar_widgets -->
<center><p><img src="<?php bloginfo('template_url'); ?>/images/pic_ads_04.jpg" alt="" /></p>
<br><br>
<?php query_posts((array('orderby' => 'rand', 'showposts' => 8)));?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="thumb">
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><img src="<?php echo get_post_meta($post->ID, "thumb", true); ?>" width="156" height="105" alt="<?php the_title(); ?>" /></a>
</div>
<div class="fpost3">
<h3><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
<p><?php if(function_exists('the_views')) { the_views(); } ?></p>
<p><?php if(function_exists('the_ratings')) { the_ratings(); } ?></p>
</div>
<br><br>
<?php endwhile; ?>
<?php endif; ?>
</div>
<center>
<!-- /sidebar_widgets -->