• Hi everybody, today I was having some troubles with Simple Custom Post Order Plugin and custom post types. In detail, in the WP install I was working on, Simple Custom Post Order Plugin was not enabled for all of the existing custom post types, but it was enabled and fully operational for some of them.

    I immediately noticed that the non-SCPO enabled post types were absent in the plugin settings page.

    After a quick dive into code, I noticed that simply changing the following rows in the file plugins/simple-custom-post-order/settings.inc:

    $post_types = get_post_types(array(
    ‘show_ui’ => true,
    ‘show_in_menu’ => true,
    ), ‘objects’);

    to:

    $post_types = get_post_types(array(
    ‘show_ui’ => true,
    //’show_in_menu’ => true,
    ), ‘objects’);

    did the trick!

    After the modification, the previously missing custom post types do appear in the plugin setting backend page and after saving the settings everything seems to work fine!

    I’m sharing this just hoping that it may somehow help someone!

    Nerdy cheers.

    The O.

    • This topic was modified 9 years, 6 months ago by onireon.

The topic ‘Problem with custom post types [SOLVED]’ is closed to new replies.