WordPress.org

Forums

Simple Page Ordering
Great stuff (1 post)

  1. sardbaba
    Member
    Posted 1 year ago #

    If you want to use it on a custom post type you need to specify that it supports

    $args = array(
    [...]
    	'supports' => array(
    		'title',
    		'editor',
    [...]
    		'page-attributes',
    	),
    [...]
    	'hierarchical' => true,
    );
    
    $args = apply_filters( 'my_args', $args );
    register_post_type( 'my_custom_post_type', $args );

    Then, if you don't need this metabox, you can remove it:

    remove_meta_box( 'pageparentdiv', 'my_custom_post_type', 'side' );

    but the custom post type must be configured to allow both hierarchical and page-attributes anyway.

    Thanks for this plugin you make my day.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple Page Ordering
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.