• Can anyone help with the below code. I can’t get the ‘Read more…’ link to display in my index.php. Am i missing a setting in the wp-admin?? I’m lost, any help would be greatly appreciated.

    <?php get_header(); ?>
    
    <?php query_posts("category_name=Blog"); ?> 
    
    <?php global $more; $more = 0; ?>
    
    	<div id="content" class="narrowcolumn">
    
    	<?php if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    			<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
    				<div class="postTitle"><h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2></div><div class="dateStamp"><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> -->| <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></div>
    
    				<div class="entry">
                    <?php the_content('Read more...'); ?>
    				</div>
    			</div>
    
    		<?php endwhile; ?>
    
    		<div class="navigation">
    			<div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
    			<div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
    		</div>
    
    	<?php else : ?>
    
    		<h2 class="center">Not Found</h2>
    		<p class="center">Sorry, but you are looking for something that isn't here.
    
    		<?php get_search_form(); ?>
    
    	<?php endif; ?>
    
    	</div>
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter kountz

    (@kountz)

    Bump, can anyone help me with the displaying of ‘Read more…’?

    Any help is greatly appreciated.

    Thread Starter kountz

    (@kountz)

    shameless bump…no one!?!?!?

    Try moving $more = 0; to just before the_content tag.

    Thread Starter kountz

    (@kountz)

    Nope that didn’t work ??

    Anyone else??

    Kountz,
    try moving the
    <?php $more = 0 ?>
    just after the while loop. it worked with me after long trials and errors.

    here my version of the loop for my custom Blog page

    <div id="content" class="narrowcolumn" role="main">
    	<?php global $more; ?>
    	<?php $my_query = new WP_Query('showposts=10');
    	while ($my_query->have_posts()) : $my_query->the_post(); ?>
    	<?php $more = 0; ?>
    		<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
    			<div class="thumbnail">
    				<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><img src="<?php bloginfo('template_url') ?>/images/<?php echo get_post_meta($post->ID, 'post-thumbnail', true); ?>" width="200" height="200" alt="Post Image" /></a>
    			</div><!-- thumbnail ends -->
    			<div class="entry">
    				<h1 class="post-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
    				<small class="post-info"><strong>Posted: </strong><?php the_time('F jS, Y') ?> in <?php the_category(', ') ?> by <?php the_author() ?></small>
    				<div class="post-desc">
    					<?php the_content('Read more'); ?><span class="post-comments"><?php comments_popup_link('0 Comments', '1 Comment', '% Comments'); ?></span>
    				</div>
    			</div>
    		</div><!-- post ends -->
    	<?php endwhile; ?>
    	</div><!-- content ends -->

    [signature moderated Please read the Forum Rules]

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Read more… not displaying??’ is closed to new replies.