• Hello,

    I need to limit the posts to the logged-in users with a membership, so I used the Auto Excerpt option.

    The excerpt works well but I want to set the custom link of the Read More button to redirect to the Login page.
    It does not work.
    The Read More button just reloads the post page, and it does not work with any URL I set.

    Is anybody else experiencing this issue?
    Any idea how to make it work?



Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    The excerpt works well but I want to set the custom link of the Read More button to redirect to the Login page.

    What are you doing to create your custom link? The “read more” is a part of core WP. If you want to change it, you’d filter it using the_content_more_link

    Plugin Author Chad Butler

    (@cbutlerjr)

    As an addendum to the above, it also depends upon how your “read more” link is even generated. Some themes will include an excerpt process on the_content() while others may apply an actual excerpt (using the_excerpt() and thus requiring use of the excerpt_more filter). So there is a “it depends” component to the caveat. Ultimately, you have to know how your read more comes about in order to filter it.

    Thread Starter sarafuji1

    (@sarafuji1)

    I am using the setting in the WP-Members plugin settings to add Read More to all the previewed articles.
    So I am not really sure how it is generated… it is “automatic”

    Plugin Author Chad Butler

    (@cbutlerjr)

    What’s generated by the plugin’s auto-excerpt function is filtered by WP’s the_content_more_link filter.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Read more custom link does not work’ is closed to new replies.