Now you wouldn’t normally need to display an excerpt from a page’s description, would you? I didn’t think so either. But apparently there is a need. And when there’s a need, we aim to please. We had a client who wants to display custom excerpts from a page’s child pages on the parent page with links to the child page. WordPress normally doesn’t excerpt from pages, only from posts.
So we had to find a plugin that would do that. Enter PJW Page Excerpt by Peter Westwood. Once you install this plugin, there’s nothing to configure. You just go to the page where you want to add an excerpt and you’ll notice an excerpt box just like you’d see on a post entry page. How cool is that?
The next step is to add your custom excerpts to all your page’s child pages. Then watch the magic.
ID; ?> strong>Read the rest of this page »'); ?> '
Pages: ', 'after' => '', 'next_or_number' => 'number')); ?>
Notice that I’ve added styling hooks to the unordered list. This is because I don’t want a list-style-type, but rather a nice inline paragraph. And that lets me style the output however I want. Hope this helps someone else!Please follow and like us:
Joni Mueller has been designing web sites for hire since 2003, when she first blew up her web host’s server by insisting on running Greymatter. Since then, Joni has designed for Blogger and Movable Type, TextPattern, WordPress and CMS Made Simple. She lives with her cat and shoe collection in a bucolic old section of Houston called Idylwood. For some strange reason, Joni likes to refer to herself in the third person. When she’s not working on web design, she’s ordering lawyers around. And blogging about it. Or both.