• Resolved Cogdiss

    (@cogdiss)


    Hi there,

    I’m using Lingotek and Polylang on a site at the moment where I’m also using WP Toolset Types and Views to create custom post types and taxonomies.

    I’m at the stage of uploading the English content for translation, and I’m running into some issues with the custom taxonomies.

    I have been able to upload them individually, but when I click ‘request translations’ or click any of the + signs under the flags in the Category page, it does nothing.

    I’m also seeing this error message at the bottom of that page:
    Warning: Missing argument 1 for Lingotek_Actions::_add_bulk_actions(), called in /wp-content/plugins/lingotek-translation/admin/term-actions.php on line 82 and defined in /wp-content/plugins/lingotek-translation/admin/actions.php on line 456

    The same thing is happening on the custom posts themselves, as well as the custom categories – although I’m not seeing the error message on that page.

    I have the latest version of the plugin and the latest version of WordPress / the other plugins I’m using on the site.

    Any advice you’re able to give me would be greatly appreciated!

    Kind regards

    Hannah

    The page I need help with: [log in to see the link]

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

    (@erichie)

    I seem to be able to translate custom post types and custom taxonomies just fine.

    Have you enabled the translation of your custom taxonomies both in the Polylang settings and the Lingotek Manage -> Content Type Configuration page?

    Are you manually adding custom post types and taxonomies or are you using a plugin to do that?

    What are your settings on the Lingotek Defaults page?

    Thread Starter Cogdiss

    (@cogdiss)

    Hi Erichie,

    Many thanks for your response. I’m not entirely sure what happened – it may have been a caching issue on my end – but this suddenly started working as intended and I’ve been able to translate everything without issue.

    Many thanks

    Hannah

    I’m having the same issue, I have checked “Custom post types and Taxonomies” in settings but it doesn’t change anything. How did you solved it ?

    Plugin Contributor Robert Hanna

    (@robertdhanna)

    Hello @hananemdz,

    We believe we have discovered the solution to the problem you are describing. If you are registering the post type manually (ie. putting the post type registering code somewhere in the PHP code) then you need to set the priority to 1.

    For example:

    add_action('init', 'create_custom_post_init', 10);

    This line registers a new post type but sets the priority for loading this post type to 10 (10 is the lowest priority, 1 is the highest), so if you change that line to this:

    add_action('init', 'create_custom_post_init', 1);

    Your post type should now get registered before our code runs. This will allow our plugin to give you bulk action options on the custom post type.

    Please let us know if this works for you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Unable to translate custom taxonomies’ is closed to new replies.