Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php query_posts( array('post__not_in' => array(46,2401), 'cat' => $category_id,'posts_per_page'=>'-1')); ?>
- <?php while ( have_posts() ) : the_post();
- echo '<li';
- if (($ID = get_the_ID()) == $pagepostid) echo ' class="proadv-current-item"';
- //else echo ' class="post-id'.$ID.'-id'.$pagepostid.'"';
- echo '>';
- echo '<div class="sponsor-thumb">';
- echo '<a href="'.get_permalink().'">';
- the_post_thumbnail( 'category-thumb' );
- echo '</a>';
- echo '</div>';
- echo '<a href="'.get_permalink().'">';
- the_title();
- echo '</a>';
- echo '</li>';
- endwhile; ?>
- <?php wp_reset_query(); ?>
- query_posts( array('post__not_in' => array(46,2401), 'cat' => $category_id,'posts_per_page'=>'-1','orderby'=>'name','order'=>'ASC'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement