Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: City-County Page
- */
- get_header();
- global $woo_options;
- ?>
- <div id="content" class="page col-full">
- <div id="main" class="col-left">
- <?php if (have_posts()) : $count = 0; ?>
- <?php while (have_posts()) : the_post(); $count++; ?>
- <div <?php post_class(); ?>>
- <div class="entry">
- <?php the_content(); ?>
- <?php
- $pTitle = get_the_title();
- $today = date('Y-m-d');
- query_posts(array('tribe_events_cat' => 1255,
- 'showposts' => 5,
- 'post_type' => 'tribe_events',
- 'meta_key' => '_EventEndDate',
- 'orderby' => 'meta_value',
- 'order' => 'ASC',
- 'meta_query' => array(
- array(
- 'key' => '_EventEndDate',
- 'meta-value' => $value,
- 'value' => $today,
- 'compare' => '>=',
- 'type' => 'CHAR'
- )
- )
- ));
- ?>
- <ul>
- <?php while (have_posts()) : the_post(); ?>
- <li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
- <?php endwhile; ?>
- </ul>
- </div><!-- /.entry -->
- </div><!-- /.post -->
- <?php $comm = $woo_options[ 'woo_comments' ]; if ( ($comm == "page" || $comm == "both") ) : ?>
- <?php comments_template(); ?>
- <?php endif; ?>
- <?php endwhile; else: ?>
- <div <?php post_class(); ?>>
- <p><?php _e( 'Sorry, no posts matched your criteria.', 'woothemes' ) ?></p>
- </div><!-- /.post -->
- <?php endif; ?>
- </div><!-- /#main -->
- <?php get_sidebar(); ?>
- </div><!-- /#content -->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement