List subpages content (4 posts)

  1. digeart
    Posted 7 years ago #

    I have a page called 'Artists' which has a few subpages.

    On the Artists page, I'd like to list all its subpages as headings with content up to the <!--more--> tag.

    Like listing posts excerpts in an archive or a category page.

    Can this be done?

  2. hakre
    Posted 7 years ago #

    Yes it can be done, but you might need to create a template for these kind of pages only. The information you are looking for is inside the codex of wordpress. You can find codex on http://codex.wordpress.org/. What you are looking for is called "the loop". You must create your own query that you use in the loop then. That is done with WP_Query then. Do not forget to gather the needed Information about Templates as well.

  3. digeart
    Posted 7 years ago #

    Cheers. I found a plugin that seems to do what I want.


    I also used another plugin the_excerpt_reloaded to get the content of the sub pages.


    <?php the_excerpt_reloaded(0, '<img>', 'content', false, '(More)', true, 2, true); ?>

  4. exodo
    Posted 7 years ago #

    I want to do exactly the same thing. I have already tried the Sublist plugin but it doesn't work and it breaks the layout. What version of WordPress are you using? I am using 2.5.

Topic Closed

This topic has been closed to new replies.

About this Topic