Disqus script on my Sticky Posts Loop [on slider]
-
I installed Disqus in my “under development” site and noticed that disqus code was inserted in the loop of my sticky posts that ruins the transition of my slider. can somebody help me preventing disqus in adding the/their code on my loop? ??
<ul> <!-- loop --> <li> slider content </li> <li> slider content </li> <li> slider content </li> <li> slider content </li> <script> disqus script </script> </ul>
here’s the code of my sticky posts loop
<ul class="bjqs"> <?php $sticky = get_option( 'sticky_posts' ); // Get all Sticky Post rsort( $sticky ); // Sort Sticky Posts, newest at the top $sticky = array_slice( $sticky, 0, 5 ); // Get top 5 sticky posts query_posts( array( 'post__in' => $sticky, 'ignore_sticky_posts' => 1 ) ); // Query sticky posts ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <?php $thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), '' ); ?> <li style="background-image:url(<?php echo $thumbnail['0']; ?>);background-size:cover;background-position:center;"> <div class="caption"> <div class="captionwrap clearfix"> <h1><a href="#" title=""><?php the_title(); ?></a></h1> <?php the_excerpt(); ?> <div class="post-meta slider-meta"> <ul> <li>Posted <?php the_time('F d'); ?></li> <li>by <?php the_author_posts_link(); ?></li> <li><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></li> </ul> </div> </div><!-- end : captionwrap --> </div><!-- end : caption --> </li> <?php endwhile; ?> <?php endif; ?> </ul>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Disqus script on my Sticky Posts Loop [on slider]’ is closed to new replies.