WordPress.org

Forums

Page-list
[resolved] Please - would like to add read more link (3 posts)

  1. rusty1001
    Member
    Posted 2 years ago #

    Hi Thanks for the plugin, great plugin

    Sorry I see I posted to a resolved post, but not really resolved..

    like other people I would like this because on the site it looks weird with it hanging, in this websites case the SEO is not as important as the site looking good..

    $content = mb_substr($content, 0, $first_space_pos, 'UTF-8') . '...';

    I would like to know how I replace the ... with a link to the page..

    Thanks
    Rusty

    http://wordpress.org/extend/plugins/page-list/

  2. Black Road
    Member
    Posted 2 years ago #

    Hi, you can change the line to `}
    $content = mb_substr($content, 0, $first_space_pos, 'UTF-8') . '<a href='.$content.'> read more </a>';
    }`

    Of course you can change the text 'read more' to whatever you like.

  3. rusty1001
    Member
    Posted 2 years ago #

    Thank you! Solved that -
    I had actually copied the code that created the title/link and changed the title call to 'read more' and then put under the code for this, but this works better.

    R

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Page-list
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.