Forums

[resolved] More Tag not working or displaying (2 posts)

  1. hinkers
    Member
    Posted 6 months ago #

    I'm not the greatest with php or html and I'm not that familiar with wordpress. I just know bits and pieces, but my 'More Tag' doesn't work, it doesn't even show up at all. I think the problem has something to do with my theme's index.php, right? That's what I gather from the google-ing I did anyway.

    Here's the code for the index.php of the theme I'm using, can someone help me?

    <?php get_header(); ?>
    
    <!--Posts-->
    <div class="center">
        <div id="posts">
        <?php if(have_posts()): ?><?php while(have_posts()):the_post(); ?>
            <div <?php post_class(); ?> id="post-<?php the_ID() ;?>">
            <div class="datestamp">
            <div class="date_meta"><?php the_time('d'); ?></div>
            <div class="month"><?php the_time('M'); ?></div>
            <div class="year"><?php the_time('Y'); ?></div>
            </div>
            <h2 class="title"><a title="<?php the_title(); ?>" href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
            <div class="post_author"><?php _e(' Posted by '); ?><?php  the_author(); ?><div class="post_edit"><?php edit_post_link('Edit'); ?></div></div>
            <?php the_content('{Read More}'); ?>
                <div class="postmeta">
                    <div class="postcat"><?php _e('Posted in: '); ?><?php the_category(', '); ?></div>
                    <div class="postcomment"><?php comments_popup_link('No Comments', '<span class="comnum">1</span> Comment', '<span class="comnum">%</span> Comments'); ?></div>
                    <div class="postag"><?php the_tags(); ?></div>
                </div><div class="postmeta_bottom"> </div>
            </div>
            <?php endwhile ?>
                        <div class="nxt_page"><?php previous_posts_link('New Entries »', 0); ?></div>
                        <div class="prv_page"><?php next_posts_link('« Old Entries', '0') ?></div>
            <?php else: ?>
                	<h2><div class="error"><?php _e('Not Found'); ?></div></h2>
            <?php endif ?>
    
        </div>
    <!--Sidebar-->
    <?php get_sidebar(); ?>
    
    </div>
    
    <!--Footer-->
    <?php get_footer(); ?>
  2. vtxyzzy
    Member
    Posted 6 months ago #

    Try adding this after the get_header() line:

    <?php global $more; $more=0; ?>

Reply

You must log in to post.

About this Topic