• I am having a hard time with this. I created a crap load of child pages, 1300+ for a parent page and now I want to display those child pages onto the parent page in alphabetical order in columns. Each column must have a letter of the alphabet and then on top of the page must be a menu with the whole alphabet for quick navigation. How can I do this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • add new function to you`r function.php .

    function wpb_list_child_pages() { 
    
    global $post; 
    
    if ( is_page() && $post->post_parent )
    
    	$childpages = wp_list_pages( 'sort_column=menu_order&title_li=&child_of=' . $post->post_parent . '&echo=0' );
    else
    	$childpages = wp_list_pages( 'sort_column=menu_order&title_li=&child_of=' . $post->ID . '&echo=0' );
    
    if ( $childpages ) {
    
    	$string = '<ul>' . $childpages . '</ul>';
    }
    
    return $string;
    
    }
    add_shortcode('wpb_childpages', 'wpb_list_child_pages');

    To display child pages use the shortcode in a page or text widget in the sidebar:

    [wpb_childpages]

    or you can use function get_page_children read more

    Thread Starter Donlee777

    (@donlee777)

    Hey Marius, thanks for the reply. Do you have Skype or something to help me step by step? I basically just want to make the parent page into a directory that displays the child pages. But I want it to be neat and proper with the top alphabetical menu and then the alphabetical categories.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How To Display Child Pages on Parent Page’ is closed to new replies.