Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- html: {
- <?php
- $b_slide = -1;
- $fotorama_query = new WP_Query( 'category_name=novetly' );
- if ( $fotorama_query->have_posts() ) {
- while ( $fotorama_query->have_posts() ) {
- $fotorama_query->the_post();
- $b_slide = $b_slide + 1;
- echo $b_slide;
- echo ':"<div class=b-slide><a href=';
- the_permalink();
- echo '>';
- the_title();
- echo '</a></div>",';
- }
- }
- wp_reset_postdata();
- ?>
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement