Support » Themes and Templates » How can i add "Read More" link in pages and posts ?

  • Resolved shanil

    (@shanil)


    Hi All,

    I am using wordpress twenty eleven theme, i want to add “Read More” link in pages. For that i go to the admin section ,add a new page from left of admin section and some contents and then add “insert More tag” from top of the text editor, save it. But when i go to the page it shows the full content and its does not shows the read more link,if anyone knows please help me Thanks in advance.
    My page template is as below

    <?php

    get_header(); ?>
    <div id=”primary”>
    <div id=”whit-top”></div>

    <div id=”white-mid”>
    <div id=”content”>

    <div id =”menu3″>
    </div>

    <?php the_post(); ?>

    <?php get_template_part( ‘content’, ‘page’ ); ?>

    <?php //comments_template( ”, true ); ?>

    </div><!– #content –>
    </div>

    <div id=”white-bottom”></div>

    </div><!– #primary –>
    <?php get_sidebar(); ?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • why do you want to display “read more” when you’re already in the page of that article? where do you expect that “read more” link will point?

    the “read more” link will only show when it’s displaying an archive like the category page, the index page and more…

    but you can use the_excerpt(); instead of the_post(); to display read more part.

    Thread Starter shanil

    (@shanil)

    Hi wetwetwafu,

    Thanks for the quick reply.

    I want to add readMore link like this site http://www.opsmc.com.au/news/ in page. Is there any plugin to add this read More link in page? . I am using wordpress version 3.2.1

    sorry for my first reply it was wrong. you should change the
    <?php get_template_part( 'content', 'page' ); ?> instead of the the_post(); with <?php the_excerpt(); ?>

    and this http://www.opsmc.com.au/news/ is a category page, its not the main article page.

    I don’t know if you’re trying to add the read more in the category page because the 2011 theme can do that by default. Or trying to add the read more on page of the article that you created.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How can i add "Read More" link in pages and posts ?’ is closed to new replies.