WordPress get_page ‘read more’ tag

So I want to use the read more tag here:
http://codex.wordpress.org/Customizing_the_Read_More

But I’m using the get_page function as such:

Read More
$page_id = 1;
$include = get_page($page_id);
$content = apply_filters('the_content',$include->post_content);

When I’ve inserted the more tag via the page WYSIWYG it gets ignored when I echo $content.

I think I need to add something into apply_filters but I’m not sure what

Related posts

Leave a Reply

1 comment

  1. You need to change post_content to post_excerpt to echo the WYSIWYG excerpt

            $page_id = 1;
            $include = get_page($page_id);
            $content =  apply_filters('the_content',$include->post_excerpt); 
            echo $content;