More tag not working
-
Could someone take a quick look at my code? The more button is not working. ALL entry content shows up on this page.
<?php /* Template Name: Events */ ?> <?php get_header() ?> <div id="content"> <h2>Upcoming events</h2> <?php // Get today's date in the right format $todaysDate = date('m/d/Y H:i:s'); ?> <?php query_posts('showposts=20&category_name=events&meta_key=date&meta_compare=>=&meta_value=' . $todaysDate . '&orderby=meta_value&order=ASC'); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div id="post-<?php the_ID() ?>" class="<?php sandbox_post_class() ?>"> <h3 class="entry-title"><a href="<?php the_permalink(); ?>"><span class="event-date"><?php echo get_post_meta($post->ID, "date", true); ?></span> - <?php the_title(); ?></a></h3> <?php edit_post_link('edit this', '<div class="entry-date">', '</div>'); ?> <div class="entry-content"> <?php the_content( __( 'Read More <span class="meta-nav">»</span>', 'sandbox' ) ) ?> </div> <span class="event-entry-meta"> <?php if (function_exists(’sharethis_button’)) { sharethis_button(); } ?> </p> </div><!-- .post --> <?php endwhile; else: ?> <p>Sorry, no upcoming events!</p> <?php endif; ?> <?php wp_reset_query(); ?> </div><!-- #content --> </div><!-- #container --> <?php get_footer() ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘More tag not working’ is closed to new replies.