I have displayed all pages in one using get_pages()
with args of: sort_column => menu_order
, suppress_filters => false
Some pages include ACF, different HTML structure, so I made if-else statements, if page title -> display HTML part for it.
Everything was working until WPML showed up. I can't make title condition for IF, because it changes when language changes.
One of the things I can do is make condition for every language I have, but that would be code mess.
Is there a better possibility to display current HTML parts for current page?