• These code is from home.php,that will show content of page and below is to show content of post.. the problem is that read more is not work with this code.. even if i put readmore tag.i dont know why.. can anyone help me out please?

    <div class=” div” id=”div1″ style=”display:none;”>
    <?php query_posts(‘pagename=blog’); ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <?php the_content(‘Read More’); ?>

    <?php endwhile; ?>
    <?php else : ?>
    <?php endif; ?>
    <?php wp_reset_query();?>
    </div>

    <div id=”recentPost”>
    <div class=”rpHead”> </div>
    <div id=”content” class=”alignleft narrowcolumn” role=”main”>
    <?php query_posts(‘showposts=1’); ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <div <?php post_class() ?> id=”post-<?php the_ID(); ?>”>
    <h2 class=”entrytitle”>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?></h2>
    <small>»»<?php the_time(‘F jS, Y’) ?> by <?php the_author() ?></small>

    <div class=”entry”>
    <?php the_content(‘Read More’); ?>
    </div>
    </div>
    <?php endwhile; ?>
    <?php else : ?>

    <?php endif; ?>
    <?php wp_reset_query();?>
    </div>
    </div>

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Please help me out’ is closed to new replies.