Okay
  Public Ticket #2903120
Category Slug issue on multi-language site
Closed

Comments

  • Tony Moretti started the conversation

    I'm not completely sure if this is an issue with Unlimited Elements or maybe a wordpress, elementor, or polylang issue, but I am having an issue with pulling the category info on custom post types on my multi-language site.

    I am trying to have a page that lists all of our products that then can be filtered by category with buttons. The problem is that when I use {{item.posts.category_slug}} on the items it pulls the language info rather than the custom post categories. Though this only happens on the custom post types, on the standard post that is built into wordpress it pulls the correct category info. Also {{term.slug}} & {{term.name|raw}} which I use to create the buttons pulls the category info no problem.

    I've attached screenshots of the two different pages with it printing the category info for both so you can see what I'm running into. They both are using pretty much the same code, the only real difference is the layout designs.

    I'm working on this locally so I also created a quick temporary site to show what the issue is that I am running into on a live site.

    https://acute-west.jurassic.ninja/products/ : is the product list that is pulling the language category

    https://acute-west.jurassic.ninja/news-events/ : is the standard post archive that pulls the correct category

  •   Max replied privately
  •   Tony Moretti replied privately
  •   Max replied privately
  •   Tony Moretti replied privately
  •   Max replied privately