• add_action('genesis_entry_footer', 'shortcode_wp_pagelist');
        function shortcode_wp_pagelist() {
        if ( is_singular('page') ) {
    echo do_shortcode('[pagelist sort_column="post_date" child_of="parent" class="page-list-cols-3"]');
           }
    }

    Hi

    I’m using the above shortcode in a Genesis theme to output content at the foot of each page. However, there is a hiccup. If you go to the Page Matthew which is a sub page of the page Gospels it lists all sub-pages of the page Gospel.

    If I go to Matthew 1 which is a sub-page of Matthew it lists the 28 pages of Matthew which is what I want to happen.

    Is there another element I can add so that when I click on Matthew it lists the pages that Matthew 1 lists.

    https://gucu.org.uk/2-the-new-testament/1-gospels/1-matthew/

    https://gucu.org.uk/2-the-new-testament/1-gospels/1-matthew/matthew-1/

    Thanks Rich

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter Richard Brown

    (@cregy)

    Sorry I should add the page hierarchy goes:

    • 1 New Testament
      • 2 Gospels
        • 1 Matthew
        • 2 Mark
        • 3 Luke
        • 4 John
        • 5 Acts
      • 3 Churches
        • 1 Romans

    Etc…

Viewing 1 replies (of 1 total)
  • The topic ‘Sub Page exclusions’ is closed to new replies.