Support » Plugin: Post Types Order » No sorting for custom post type

  • Resolved lzevon


    The theme I’m using has a built in slider and the option to sort slider options is not present. This is the code in the custom_post.php file. Is something missing here that would cause the post-types-order plugin from working? I’m not sure the developer adhered to whatever the codex defines as a valid custom post type?

    // ==================================================================
    // Post type - Slider
    // ==================================================================
    function post_type_slider() {
      'label'               => 'Slider',
      'singular'            => 'Slider',
      'description'         => 'Slider content',
      'public'              => true,
      'capability_type'     => 'page',
      'exclude_from_search' => true,
      'hierarchical'        => true,
      'query_var'           => true,
      'menu_position'       => 5,
      'supports'            => array(
      'rewrite'             => true,
    add_action('init', 'post_type_slider');


Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author tdgu


    Unfortunate the plugin can sort only non-hierarchical post types, so you should change the ‘hierarchical’ => true to false. Or update to Advanced Post Types Order which can handle all types.

    Got it, thanks, I set the value to false and boom, it works! Would having hierarchical set to ‘true’ prevent me from even manually editing dates and sorting the order? Because when I tried to adjust time/date stamp it had no effect?

    Thank you @tdgu!

    Plugin Author tdgu


    The hierarchical property should have any effect on the date change.

    OK, thanks tdgu, I’m all set now. I appreciate the help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘No sorting for custom post type’ is closed to new replies.