WordPress.org

Ready to get started?Download WordPress

Forums

Display Posts Shortcode
[resolved] List pages with a specific parent page? (5 posts)

  1. fiksegts
    Member
    Posted 2 years ago #

    how can I list all of the pages with a specific parent page?

    thanks!

    http://wordpress.org/extend/plugins/display-posts-shortcode/

  2. Bill Erickson
    Member
    Plugin Author

    Posted 2 years ago #

    You'll need to find the parent page's ID. If it was 8, then you could use this shortcode:

    [display-posts post_parent="8"]

  3. fiksegts
    Member
    Posted 2 years ago #

    thanks for the response, tried that, should this be working for pages? I'm not looking for the posts...

  4. donzahidmahmood
    Member
    Posted 1 year ago #

    You'll need to find the parent page's ID. If it was 8, then you could use this shortcode:

    [display-posts post_parent="8"]

    Tried this and it didn't work... Didn't display anything!

  5. Bill Erickson
    Member
    Plugin Author

    Posted 1 year ago #

    If you're using pages, make sure to specify the post type (the default post type is 'post' if none is specified)

    [display-posts post_parent="8" post_type="page"]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic