Support » Plugin: Admin Collapse Subpages » use for custom post types

Viewing 6 replies - 1 through 6 (of 6 total)
  • JRobson153


    To anyone still interested in this question, this plugin does work great for custom post types right out of the box!

    Of course by nature it’s only meant for page-like post types so make sure you’ve set
    ‘hierarchical’ => true,

    This doesn’t seem to work with custom post types.
    I can get it to work if I modify the code.

    if ( is_admin() && isset($_GET['post_type']) && $_GET['post_type'] == 'page' && $pagenow =='edit.php' ) {
    if ( is_admin() && isset($_GET['post_type']) && $_GET['post_type'] == 'show' && $pagenow =='edit.php' ) {

    jQuery('.post-type-page .subsubsub').append(links);
    jQuery('.post-type-show .subsubsub').append(links);

    The issue is if the Plugin is updated that it would get overwritten.
    You mentioned that it should work out of the box. How is that possible.

    Is it possible for an update to allow me to specify which post types that I would want this for with checkboxes.

    I’ll ditto what Gravitate has said. If an update can include all post types (with a hierarchical) that would be awesome.

    Plugin Author bravokeyl


    New version will include this ..

    Plugin Author bravokeyl


    @gravitate ,i think it works for custom post type named show if you changed the code as above..

    Plugin Author bravokeyl


    Version 2.2 released which supports custom post types which are hierarchical..

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘use for custom post types’ is closed to new replies.