setting more 1 or 0 won't trim the_content
-
So many things fail easily now in multisite wp that didn’t fail with a single blog…
I’ll only mention one in this post: Posts are ALWAYS shown in full.I’ve tried setting $more =0 , 1, moved the variable up and down the code…
I’ve tried setup_postdata($post) everywhere…
I’ve tried installing the theme in another site…
I’ve tried uninstalling plugins…The posts have no manual excerpt nor more tag… I just want the automatic excerpt to be generated automatically.
Is there anything else I can try?
Below is the code
if (have_posts()): while (have_posts()) : the_post(); ?> <article class="entry" id="post-<?php the_ID(); ?>"> <header class="postheader"> <h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2><?php echo'<span class="postinfo postdate">'. get_post_snippet( 'CityName' ) . ', '; the_date('', $span_w_city,'</span>'); ?> </header> <div class="post_content"> <?php global $more; $more = 0; the_content(__('(full article...)')); ?> <?php the_tags(__('<div class="postfooter postinfo">Tags: '), ', ', ' — </div>'); ?> </div> <!-- end Entry --> </article> <?php endwhile; else: ?>
- The topic ‘setting more 1 or 0 won't trim the_content’ is closed to new replies.