<!–more–> Questions
-
Question 1: Is there a way to customize the “(More)” tag that gets placed where the tag is placed to “Read More” or something?
Question 2: I have the posts on pages as well, but I want them to display the “(More)” tag like they do on index.php. On the pages they are only displaying a certain category.
Index page code:
<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?><!--Looks if you have posts-->
<div><!--start of news post-->
<h3>" title="<?php the_title(); ?>"><?php the_title(); ?></h3>
<p class="greysmall">Posted By: <?php the_author(); ?> <?php the_time('F jS, Y') ?></p>
<?php the_content(); ?>
<p class="newsend">" title="<?php the_title(); ?>"><?php _e('Read More'); ?> | <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?> <?php edit_post_link('Edit', ' | ', ''); ?></p>
</div><!--End of news post--><?php endwhile; ?>
<?php else : ?>
<div class="news" id="post-<?php the_ID(); ?>"><!--If No Posts-->
<h2><?php _e('Not Found'); ?></h2>
</div><!--End of If No posts--><?php endif; ?>
And on my page:
<?php if (have_posts()) : ?>
<?php $temp_query = $wp_query; ?>
<?php query_posts('category_name=Unreal Tournament 3'); ?>
<?php while (have_posts()) : the_post(); ?><div>
<h3>" title="<?php the_title(); ?>"><?php the_title(); ?></h3>
<p class="greysmall">Posted <?php the_time('F jS, Y') ?></p>
<?php the_content(); ?><p class="newsend">Download | <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?> <?php edit_post_link('Edit', ' | ', ''); ?></p>
</div>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>Can anyone see why the More tag is not showing up on my pages?
Thanks!
- The topic ‘<!–more–> Questions’ is closed to new replies.