Get_Page and Read More Tag (1 post)

  1. SJTR
    Posted 1 year ago #

    Hi all.

    I'm using this code to call in content from a page:

    $id = 38;
    $p = get_page($id);
    echo apply_filters('the_content', $p->post_content);

    Now when I add a read more tag into my posts (in the WordPress UI) it doesn't show/work when viewing the site. The content is just fully showing.

    Do I need to add something to the functions.php file or edit the code I posted above?

    I checked the WordPress.org documentation but I don't see what I should be using hence I'm asking you.

    Thanks in advance.


Topic Closed

This topic has been closed to new replies.

About this Topic