Support » Plugin: Wicked Folders » Problem with Polylang

  • aurepons


    Hi, some months ago you solved me a problem with polylang plugin, to allow wicked folders to remember the current active folder, diferent in each language.

    I have detected now a small bug. In the admin bar I select my current language and only the folders created for this language are shown, this is ok

    Then I enter a page, edit and save. When close the page and come back to the pages listing, all folders for all languages are shown, despite the language selector is still in my current language.

    Folders are refreshed correctly when change the language again, buy it seems they are not filtered when you come back from editing a page. This is very confusing for my editors.

    Thank you very much

Viewing 1 replies (of 1 total)
  • Plugin Author wickedplugins


    Hi @aurepons,

    Can you please try adding a filter for wicked_folders_folder_term_query_args to your theme’s functions.php file that unsets the lang parameter to see if that fixes things for you?

    For example, something like:

    add_filter( 'wicked_folders_folder_term_query_args', function( $term_query ){
        unset( $term_query[ 'lang' ] );
        return $term_query;
    } );
Viewing 1 replies (of 1 total)
  • The topic ‘Problem with Polylang’ is closed to new replies.