Support » Plugin: Simple Page Ordering » Trouble with Custom Post Type and 'Sort by Order' link

  • Hello,

    So, I’m having a bit of a problem:

    After installing the plugin and seeing how great it works with my pages, I created a post type named ‘Artists’ that I want to be able to sort as well. Like noted in the documentation,

    • I added ‘page-attributes’ to support
    • I added the page ordering filter
    • my hierarchy is set to ‘true’ and
    • I added post type support.

    For some reason, I am not seeing the ‘Sort by Order’ link in the top menu and so I can’t click/drag.

    Below is my functions.php file. I’m not sure if I’ve misplaced something or made some other mistake but I am not receiving any errors anywhere on the site; it’s just not working.

    If I can get some help with this, that would be wonderful! Thank you in advance.

    add_action('init', 'artist_register');
    add_post_type_support( 'post', 'page-attributes' );
    apply_filters( 'simple_page_ordering_is_sortable');
    function artist_register() {
    	$labels = array(
    		'name' =>; _x('Artists', 'post type general name'),
    		'singular_name' =>; _x('Artist', 'post type singular name'),
    		'add_new' =>; _x('Add New', 'Artist'),
    		'add_new_item' =>; __('Add New Artist'),
    		'edit_item' =>; __('Edit Artist'),
    		'new_item' =>; __('New Artist'),
    		'view_item' =>; __('View Artist'),
    		'search_items' =>; __('Search Artists'),
    		'not_found' =>;  __('Nothing found'),
    		'not_found_in_trash' =>; __('Nothing found in Trash'),
    		'parent_item_colon' =>; ''
    	$args = array(
    		'labels' =>; $labels,
    		'public' =>; true,
    		'publicly_queryable' =>; true,
    		'show_ui' =>; true,
    		'query_var' =>; true,
    		'menu_icon' =>; get_stylesheet_directory_uri() . '/article16.png',
    		'capability_type' =>; 'post',
    		'hierarchical' =>; true,
    		'menu_position' =>; null,
    		'has_archive' => true,
    	register_post_type( 'artist' , $args );

  • The topic ‘Trouble with Custom Post Type and 'Sort by Order' link’ is closed to new replies.