• Hi,

    I am trying to output the_excerpt() in a plugin. I have replaced the_title() with get_the_title($id) but i don’t know what to replace the_excerpt() with. Any help would be gratefully received.

    Thanks!
    Ben

Viewing 2 replies - 1 through 2 (of 2 total)
  • get_the_excerpt(). If the Docs search functionality escapes you (as it seems to escape Yahoo! from time to time), just peek in the code.

    In this case, in wp-includes/post-template.php where you’ll find all the template functions. Lots of interesting stuff in there.

    Just keep in mind not all the functions in there will necessarily remain the same in a future version of WordPress.

    Thread Starter Ben Dwyer

    (@scruffian)

    thank you 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘the_excerpt in a plugin’ is closed to new replies.