Rss Feed
  1. To have read more option in wordpress

    Friday, 22 February 2013


    Splitting Content » The More Tag


    You can truncate your blog entries so that only the first part of certain posts is displayed on the home and archive pages. When you do this, a link will be placed directly after your excerpt, pointing the reader to the full post.
    You can find the More Tag button in the first row of the visual editor toolbar or by pressing Alt+Shift+T:
    more_button

    Using the More tag

    Refer:
    http://en.support.wordpress.com/splitting-content/more-tag/


    Customizing the Read More

    The Excerpt Basics

    Excerpts (teasers) can be shown on WordPress through two methods:
    • The first, keeping the_content() template tag and inserting a quicktag called moreinto your post at your desired "cut-off" point.
    Refer:

    http://codex.wordpress.org/Customizing_the_Read_More


    How to Display a Read More link in WordPress Excerpts

    To prevent duplicate content, improve site load time, and for better SEO many bloggers have started to use post excerpts. Excerpts are mini-descriptions of the posts shown on the main blog page, category pages, and archive pages. You can see a live example by visiting any of our categories. But if you notice, our read more button is added on a separate line from the excerpt text. In this article, we will show you how to automatically add a read more link in WordPress Excerpts.
    First open your functions.php file, and paste the following code inside the php tags:


       // Changing excerpt more
       function new_excerpt_more($more) {
       global $post;
       return '… <a href="'. get_permalink($post->ID) . '">' . 'Read More &raquo;' . '</a>';
       }
       add_filter('excerpt_more', 'new_excerpt_more');

       add_filter('excerpt_more', 'new_excerpt_more');
    In this function, you are telling WordPress to remove the default more which looks like this: [...], and replace it with a link. This short and simple tutorial was requested via our suggestion form.

    Refer:
    http://www.wpbeginner.com/wp-tutorials/how-to-display-a-read-more-link-in-wordpress-excerpts/

  2. 0 comments:

    Post a Comment