http://askmethm.bigaripblog.com/
silder.php kodları
bu slider resimleri 500*300 yapabilirmiyiz
$sl_num = of_get_option('sl_num');
if ( "" != $sl_num ) {
$sl_num = (int)$sl_num;
} else {
$sl_num = 4;
}
$sl_args = array(
'posts_per_page' => $sl_num,
'ignore_sticky_posts' => 1
);
$sl_category = of_get_option( 'sl_category', 'from_all' );
if ( 'from_all' != $sl_category ) {
$sl_args['cat'] = intval( $sl_category );
}
$slider_query = new WP_Query( $sl_args );
$checkthumb = 0;
while ( $slider_query->have_posts() ) : $slider_query->the_post();
if(has_post_thumbnail( $post->ID )){
$checkthumb = 1;
}
endwhile;
if( $slider_query && ( 1 == $checkthumb ) ){
?>
<script>
/* jQuery(window).load(function() {
jQuery('.flexslider').flexslider({
animation: "",
direction: "",
slideshow: ,
controlNav: ,
directionNav:
});
});
/* ]]> */
</script>
wp_reset_query();
wp_reset_postdata();
?>