• Resolved biznesmarketua

    (@biznesmarketua)


    Hi guys!
    Can someone tell me how to solve this problem.
    The site has a Theme that is officially compatible with WPML. Additionally, I use the Bellows Accordion Menu.

    Problem in the following. When WPML is turned on, the category in the menu is replaced with incorrect ones. Moreover, the problem is only on the pages. In the posts and blog, everything is fine.
    I tried to use the exception method to determine what the Bellows plugin conflicts with and found out that the problem is in the WPML.
    When I turn off the WPML, the menu links in the Bellows Menu show fine. When I turn on the WPML, in the links I see change the taxonomies (categories) to the wrong ones. That is, if the Category name coincides with some other taxonomy (Example: this is how it should be – https://biznesmarket.com.ua/prodazha-biznesa/, and it shows like this – https://biznesmarket.com.ua/ad_warranty/prodazha-biznesa/.), then the link in the Bellows is changed.

    Questions (possible solutions):
    1. How to disable link rewriting for Bellows plugin in WPML?
    2. Is it possible to somehow make the Bellows plugin work on pages as well as on posts? (loop?)
    3. Your option …?

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author sevenspark

    (@sevenspark)

    Hi there,

    Bellows actually doesn’t control/change the link/URL at all – it is provided the link by the WordPress menu system, and it just outputs what it is given. (The exception being if you use the Custom URL field, in which case it’s just outputting what you give it rather than WordPress).

    It sounds like you have a conflicting category slug issue that is somehow brought out by WPML. I’m not really sure what would be going on there, but like I mentioned, Bellows doesn’t do anything to the URL, that’s all determined before the menu is generated. It doesn’t do any “link rewriting” itself.

    I think you’ll need to look into what WPML is doing there and perhaps adjust your category names if those are conflicting. I expect they are using the nav_menu_link_attributes filter to change the URLs.

    Hope that gets you pointed in the right direction! ??

    Thread Starter biznesmarketua

    (@biznesmarketua)

    Hi! Thank you for your answer.
    I’ve tried assigning an item to a menu via custom URL. But the problem remains.

    At the same time, it is not clear why everything works well on the blog and posts and shows the correct categories in the menu, and the problem only arises if you use Bellows on the pages. Perhaps there is some way to make Bellows work the same on pages as it does on posts?

    I know that using the same slugs of categories and taxonomies is not a good idea. And the problem arises precisely in those cases when the slug is the same in several categories and taxonomies. That being said, if I change the category slug, then everything starts working fine. BUT! I can’t afford to do this, because I already have a lot of posts related to existing categories. And this will have a very bad effect on the SEO.

    But before, I had no problem with this. Apart from Bellows, slug menus are shown everywhere on the site with the correct categories / taxonomies. Even if the slugs are the same.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Replacing Wrong Categories in the Menu’ is closed to new replies.