Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End WORDPRESS: Separate “Read More” from the_content ?

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #45370
    asiek
    Participant

    I’m basically trying to create two separate divs: one for the actual post content and another for the “Read More” Link.

    Right now the link just sits there right after the post text…I’d like to position it elsewhere

    I did some research and found [THIS](http://wordpress.org/support/topic/separate-read-more-from-php-the_contenthttp://wordpress.org/support/topic/separate-read-more-from-php-the_content”).

    “Mark / t31os” posted a couple comments with a solution. However, when I used the php he recommended it separated the “Read More” link from the rest of the post information, except now the post content is completely gone.

    What can I do to make the content reappear?

    Here is the code//

    post_content , “” ) != false ) { ?>

    #137919
    asiek
    Participant

    Found a solution!

    #137920
    asiek
    Participant

    .

    #137921
    asiek
    Participant

    Browsed through a couple extremely old themes I created, and found a snippet that does exactly what I was looking for.

    #137922
    asiek
    Participant

    Filter//

    //READMORE
    add_filter( ‘the_content_more_link’, ‘custom_read_more_link’ );
    function custom_read_more_link() {
    return ‘

    ‘;
    }

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Back End’ is closed to new topics and replies.