• I’ve seen a lot of reviews with the complaint that the plugin doesn’t support custom post types. I needed this for several sites so instead of tweaking the code to manually add each custom post type, I’ve applied a tweak so that all post types are supported by default. I’ll explain the change below, in case anyone else finds it useful. Maybe the developer can include this in a future release?

    Find line 48 in edit-next-previous-post-admin.php (/wp-content/plugins/buttons-to-edit-next-previous-post) that looks like this:

    if( strpos($screen->parent_file, 'edit.php') !== FALSE && in_array($screen->id, $supported_types) && in_array($screen->post_type, $supported_types) && $screen->action != 'add'){

    and change it to this:

    if (strpos($screen->parent_file, 'edit.php') !== FALSE && $screen->action != 'add' && strpos($screen->id, 'edit-') === false) {

    The buttons should now appear on all post types, including custom ones.

    • This topic was modified 2 years, 10 months ago by itsViney.
    • This topic was modified 2 years, 10 months ago by itsViney.
    • This topic was modified 2 years, 10 months ago by itsViney.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Solved: How to enable buttons for all post types’ is closed to new replies.