• in the plugins file at line 193 in the function “flatten_page_list” i changed:

    - $args = 'sort_column=menu_order&sort_order=asc';
    + $args = 'sort_column=menu_order&sort_order=asc&post_type=' . get_post_type();

    i call the plugins theme functions like this:

    <?php if ( is_post_type_hierarchical(get_post_type()) ) { ?>
    <?php previous_link(); ?><?php parent_link(); ?><?php next_link(); ?>
    <?php } ?>

    the whole plugin works now also for custom post_types.

    maybe this can be implemented in an update?

    https://ww.wp.xz.cn/plugins/next-page/

The topic ‘support for custom hirarchical post_types’ is closed to new replies.