Calling a Specific Excerpt (2 posts)

  1. Ben B
    Posted 8 years ago #

    I'm looking to display sub-pages and their excerpt as a list within a template. I know that my pages respond to the_excerpt(); through a plugin.

    I'm used the code from here: http://wordpress.org/support/topic/168982?replies=4 . This works well to drag the page titles up; but displays the excerpt of the page on which it appears (example: on Page A, it displays headings for pages B, C, D and E; but only ever the excerpt from A)

    I assume this is because the_excerpt(); takes the context of the current page. Is it possible to call a specific exceprt?

    My thoughts were to use the_excerpt($Page->ID);, but I can't seem to force a specific excerpt.

    Will I have to create a mini-loop for each sub-page? If so, how do I re-set back to the original loop for things like sidebars and footers?



  2. design-is
    Posted 7 years ago #

    Hi there Ben and others...

    Has anyone found a solution to calling a Specific Excerpt?

    I want to be able to call the excerpt from 'post A' unless the post I'm currently on has an excerpt. Is this possible?



Topic Closed

This topic has been closed to new replies.

About this Topic