• As of the latest version (5.0.3), custom post types no longer appear as an option in the drop-down menu. Only Post and Page appear in the menu.

    (The custom post type that my website uses is the one created by the Events Manger plugin.)

    I’ve reinstalled the previous version, but I’m hoping you’ll be able to fix this, as otherwise I’ll be stuck using an unsupported version of your very useful plugin.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Developer removed the look up of all present post types. But you can add your posttype manually in copy_move_comments.php.

    On line 118 and 157 replace:

    $target_post_types = ['post', 'page'];

    with:

    $target_post_types = ['post', 'page', 'product'];

    In this case ‘product’ for WC products but you add whatever posttype slug you need.

    I used it to move Reviews from a WC Product to a Post.

    It worked great! It would be delightful if we didn’t have to adjust the plugin to add all custom post types, but until then, this works well. Thank you!

    Katie

    (@abridgeeducamp)

    I tried rolling back to 5.0.2, but then I get a critical error on the website when trying to move comments, so I had to deactivate the plugin. Hope this incompatibility with custom post types gets resolved soon!

    (edited out the website URL in below error log):

    An error of type E_ERROR was caused in line 569 of the file REDACTED/httpdocs/wp-content/plugins/copy-or-move-comments/copy_move_comments.php. Error message: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in REDACTED/httpdocs/wp-content/plugins/copy-or-move-comments/copy_move_comments.php:569
    Stack trace:
    #0 REDACTED/httpdocs/wp-includes/class-wp-hook.php(308): prefix_admin_action_move()
    #1 REDACTED/httpdocs/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #2 REDACTED/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 REDACTED/wp-admin/admin-post.php(85): do_action()
    #4 {main}
    thrown

    • This reply was modified 1 year, 3 months ago by Katie. Reason: Added error log data
    Thread Starter henebry

    (@henebry)

    @abridgeeducamp: Original poster here.

    My issue was resolved by implementing the suggestion given by @zudie, just above. Note that the plugin has since updated from 5.0.3 to 5.0.4, with the result that the syntax of line 118 changed slightly. But you can still fix the issue by adding your custom post type to the two lists of post types found on lines 118 and 157.

    The only issue is that you will need to re-implement this fix every time the plugin updates. (As I discovered just now.)

    Email back if you have any questions!

    • This reply was modified 1 year, 3 months ago by henebry.
    Katie

    (@abridgeeducamp)

    @henebry Thanks for the info! Will try that ?? Any idea why the plugin developers removed compatibility with custom post types?

    Thread Starter henebry

    (@henebry)

    Not sure, but the previous version supported a BUNCH of custom post types, which resulted in a messy drop-down menu.

    The best permanent fix would be a settings page that would allow us to add custom post types as a text list separated by commas or carriage-returns. But I’m not a developer, so what seems like a simple fix to me might not actually be all that simple to implement.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘No longer supports custom post types’ is closed to new replies.