• Hi! Thanks for the plugin, it’s great!
    I just have one little problem with it. I use Pods to create custom posts and taxonomies. When I want to list pods as in https://www.medievalitis.com/enlaces/todos-los-enlaces/ I get this error twice:

    Warning: Missing argument 2 for Sublanguage_current::translate_post_title(), called in /(…)/wp-includes/class-wp-hook.php on line 286 and defined in /(…)/wp-content/plugins/sublanguage/class-current.php on line 375

    Could someone help?

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • It looks like a “the_title” filter is triggered from somewhere (maybe in Pods plugin or in other plugin or in theme files) with the wrong number of argument. In other words the bug is not in Sublanguage so I can’t fix it.

    But you can prevent this warning by removing the sublanguage filter. Just add this in your function.php:

    add_action('sublanguage_init', function($sublanguage) {
      remove_filter('the_title', array($sublanguage, 'translate_post_title'), 10);
    });

    Please tell me if it solves things.

    • This reply was modified 6 years, 9 months ago by maxime.
    Thread Starter manoleixon

    (@manoleixon)

    Thanks! It didn’t solve the problem, but at least hided it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error with pods’ is closed to new replies.