• I was having an issue.

    I have four languages on my website, and whenever I was testing to flush the permalinks, the get_categories returned a different number of categories, creating some 404 categories.

    I have checked, and it looks like $sitepress has added a few new filters for the get_categories function; improving the code a bit helped me return all the categories regardless of the language I’m flushing the permalinks in.

    https://gist.github.com/djulianm/395a7025ed8f7d0eb665f86f9392be35

    Let me know your thoughts.

  • You must be logged in to reply to this topic.