• Resolved receter

    (@receter)


    Hello,

    your plugin was exactly what I searched for, i even did a dance when I found it. But then I activated it and nothing happened …

    I read your code and found the problem. It was this line of Code:
    if ( $menu_item->type == ‘taxonomy’ && $menu_item->type_label == “Category” ) {

    The Problem is that if anyone uses another Language, the type_label is not “Category” because it’s translated. I have the german version so I changed the code to: $menu_item->type_label == “Kategorie”

    Now it works!

    My suggestion is to change the line to:
    if ( $menu_item->type == ‘taxonomy’ && $menu_item->type_label == __(‘Category’) ) {

    This will work with every language.

    Thanks.

    http://wordpress.org/extend/plugins/posts-in-category-menu/

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

    (@queenvictoria)

    Hi there. I’d actually changed the way that that works anyway. I’d be interested to know if my fix works with multilanguage too. Could you retest with v0.2 please? If it doesn’t work I’ll integrate your work with the plugin. Thanks for the heads up.

    if ( $menu_item->type == 'taxonomy' && $menu_item->object == "category" ) {

    PS it now should work on other post types that support the category taxonomy.

    Please reopen this ticket (or a new one) if this is still broken. Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Posts in category menu] Doesn't work with other language than English.’ is closed to new replies.