WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. cornelius6
    Member
    Posted 1 year 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 1 year 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 1 year 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

About this Topic

Tags

No tags yet.