• vikkineal

    (@vikkineal)


    <?php $id=9; $post = get_page($id); $content = apply_filters('the_content', $post->post_content); echo $content; ?>

    I’ve the above php to display the content of the post id#9 on my ‘home page’ of my site, so that whenever the client updates the page, it’s reflected on the homepage as well – rather than having to make the change twice.

    At the moment all the post content is being shown, I need to strip it down to about 100 words…

    Any ideas?

Viewing 15 replies - 1 through 15 (of 15 total)
Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Impose word count on get_content’ is closed to new replies.