Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="box">
- <?php
- $exclude_in_secondary = ''; // Post IDs to exclude from secondary posts column.
- $the_query = new WP_Query( 'cat=-'. $GLOBALS['ex_feat'] . ',-' . $GLOBALS['ex_vid'] . '&showposts=' . get_option( 'woo_other_entries' ) . '&orderby=post_date&order=desc' );
- while ($the_query->have_posts()) : $the_query->the_post(); $do_not_duplicate = $post->ID; $counter++;
- if ( $exclude_in_secondary == '' ) {} else { $exclude_in_secondary .= ','; }
- $exclude_in_secondary .= get_the_ID();
- ?>
- <div class="post-alt blog">
- <?php woo_image('height=57&width=100&class=th') ?>
- <h2><a title="<?php _e( 'Permanent link to ', 'woothemes' ); ?> <?php the_title_attribute( array( 'echo' => 0 ) ); ?>" href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
- <p class="posted_on"><?php _e( 'Posted on ', 'woothemes' ); ?> <?php the_time( 'd F Y' ); ?> <?php edit_post_link( __('Edit'), ' · ', '' ); ?></p>
- <div class="entry">
- <?php the_excerpt(); ?>
- </div>
- <div class="postmeta">
- <span class="posted_in"><?php the_category(', ') ?></span>
- <span class="comments"><?php comments_popup_link( __( '0 Comments', 'woothemes' ), __( '1 Comment', 'woothemes' ), __( '% Comments', 'woothemes' ) ); ?></span>
- </div>
- </div><!--/post-->
- <?php endwhile; ?>
- <div class="fix"></div>
- <p class="more"><a href="<?php echo get_option( 'woo_archives' ); ?>"><?php _e( 'See more articles in the archive', 'woothemes' ); ?></a></p>
- </div>
- <?php
- // Update database with posts to exclude from secondary column.
- $current_exclude_in_secondary = get_option( 'woo_posts_exclude_secondary' );
- // Update only if necessary.
- if ( $current_exclude_in_secondary != $exclude_in_secondary ) { update_option( 'woo_posts_exclude_secondary', $exclude_in_secondary ); }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement