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

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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.

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

    admin_collapse_subpages.js
    Changed
    jQuery('.post-type-page .subsubsub').append(links);
    To
    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.
    Thanks

    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

    (@bravokeyl)

    New version will include this ..

    Plugin Author bravokeyl

    (@bravokeyl)

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

    Plugin Author bravokeyl

    (@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.