WordPress.org

Forums

WP-Members: Membership Framework
[resolved] "(more...)" translation (3 posts)

  1. cornelius6
    Member
    Posted 2 years ago #

    I have one more, maybe not so basic problem: how to change a text of "Read More"/"(more...)" link/button that appears after <!--more--> tag? It has probably to do something with filter wpmem_auto_excerpt but can't find info how to do that.

    Kind regards,
    Cornel

    http://wordpress.org/extend/plugins/wp-members/

  2. cornelius6
    Member
    Posted 2 years ago #

    Hi. I have found the following solution. It works for my child theme:

    function custom_read_more_link() {
    return '<a href="' .get_permalink() .'" rel="nofollow">Your text here...</a>';
    }
    add_filter( 'excerpt_more', 'custom_read_more_link' );
    add_filter( 'get_the_content_more_link', 'custom_read_more_link' );
    add_filter( 'the_content_more_link', 'custom_read_more_link' );
  3. Chad Butler
    Member
    Plugin Author

    Posted 2 years ago #

    As you discovered, the "read more" link that the auto excerpt inserts is designed to work with the WP read more filters.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Members: Membership Framework
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.