Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Pau Iglesias

    (@pauiglesias)

    Hi Creative Slice,

    Yes, I’ve been checking and this problem can occur because the scan form is saved too early and leaves no time to declare the post types in other plugins.

    Please could you tell the plugin that generates these missing post types to have a reference and debug this error?

    Thanks,
    Pau

    Thread Starter Creative Slice

    (@creativeslice)

    We’re actually calling these post types from the theme functions.php file like so:

    function animal_post_type() { register_post_type( 'animals',...
    add_action( 'init', 'animal_post_type');

    Is there a different way we should be calling them?

    Plugin Contributor Pau Iglesias

    (@pauiglesias)

    You can try to anticipate the call to the function that register the post type adding the priority parameter:

    add_action( ‘init’, ‘animal_post_type’, 9);

    I will work for a solution in next version of this plugin to avoid losing post types.

    Kind Regards,
    Pau

    Thread Starter Creative Slice

    (@creativeslice)

    Thank you Pau, that fixed it for our custom post types. The only one that didn’t work for was the Events post type since we’re using Pippin’s Plugins “Sugar Events Calendar” which does not add priority to actions (and therefore does not work with your plugin).

    Please let me know when the next version is out and I’ll be happy to test it for you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Additional Post Types’ is closed to new replies.