最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

How to extract an excerpt from a specific page?

matteradmin6PV0评论

Is there a way to extract an excerpt from a specific page? I've created a child theme and enabled excerpts on the pages. I know how to extract all excerpts for pages... but is there a way to extract only from a specific page or range of pages?

Is there a way to extract an excerpt from a specific page? I've created a child theme and enabled excerpts on the pages. I know how to extract all excerpts for pages... but is there a way to extract only from a specific page or range of pages?

Share Improve this question asked Apr 10, 2019 at 7:11 KamKam 1
Add a comment  | 

1 Answer 1

Reset to default 0

you need to use get_the_excerpt https://codex.wordpress/Function_Reference/get_the_excerpt Where the argument can be the page id or the post object you want to get the excerpt from.

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far