• I’m testing out this plugin and so far I’m liking it. But there’s one problem that is stopping me from going forward. It can show the excerpt, which is something I want but not the post’s excerpt. Instead I want the meta-description (which was created in Yoast). The meta-description is a fine tuned version and better than the (rarely used) excerpt.

    I’ve got a filter to replace calls to get the excerpt, but this plugin isn’t using the API. Instead it’s grabbing it directly from the post’s data structure. So it’s not applying the filters and taking advantage to the WordPress architecture.

    The code contains the line $content = $post->post_excerpt;

    Instead it should be using get_the_excerpt() which will also do the trimming work the code is also performing. Please use get_the_excerpt() instead of accessing the data structure directly.

    Or, can you provide me a filter so that I can replace the excerpt in this plugin?

    • This topic was modified 4 years, 2 months ago by Jim Reekes.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Getting the excerpt’ is closed to new replies.