Show all child pages on parent page

Home Forums Reykjavik Show all child pages on parent page

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #19384

    j.heuvel
    Participant

    Show all child pages on parent page

    Resolved

    Hi,

    We would like to display all child pages on the parent page.
    Parent page: http://basvanrens.nl/template/team/
    Number of child pages: at least 25

    We now only see 12 child pages. How can we change this?

    #19385

    Oliver Juhas
    Keymaster

    Hi j.heuvel,

    Indeed, child pages listing is limited to 12 in the theme by default. You can override this in your child theme‘s functions.php file using this code:

    function child_theme_child_pages_query( $args ) {
    	$args['posts_per_page'] = 25;
    	return $args;
    }
    add_filter( 'wmhook_reykjavik_loop_child_pages_query', 'child_theme_child_pages_query' );

    Best regards,

    Oliver Juhas
    WebMan Design

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.