Last active
August 29, 2015 14:24
-
-
Save ahmedeshaan/eda6ac44f9fdd4ebe066 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( ! empty( $title ) ) { | |
echo $args['before_title'] . apply_filters( 'widget_title', $title ). $args['after_title']; | |
}?> | |
<?php $id = uniqid("slider") ?> | |
<div class="row"> | |
<div id="<?php echo $id; ?>" class="col-md-12"> | |
<div class="tx_ticker"> | |
<?php $query = new WP_Query( array('cat'=> $cat, 'posts_per_page'=>$posts_count) ); ?> | |
<?php while($query->have_posts()): $query->the_post(); ?> | |
<div class="tx_grid_item_ly_03"> | |
<div class="tx_grid_item_details_ly_"> | |
<h2 class="tx_grid_item_title"><a href="<?php the_permalink(); ?>"><?php echo tx_get_excerpt_title($title_excerpt);?></a></h2> | |
</div> | |
</div> | |
<?php endwhile; ?> | |
<?php wp_reset_postdata(); ?> | |
</div> | |
</div> | |
</div> | |
<script type="text/javascript"> | |
jQuery('#<?php echo $id; ?> .tx_ticker').slick({ | |
slidesToShow: 1, | |
arrows:false, | |
slidesToScroll: 1, | |
autoplay: true, | |
autoplaySpeed: 3000, | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment