Background of the issue:
I am trying to display correct posts on the French version of a specific page. The page in question is hidden link. I expected to see only 'portfolio' posts from three categories: second-edition-zombies-fr, additional-sets-zombies-modern-fr, and fort-hendrix-fr. The English version of the page, hidden link, displays correctly.
Symptoms:
On the French version of the page, besides the correct posts, it also displays 'portfolio' posts from zombies-promo-fr and additional-sets-products-modern-fr, which are not supposed to be there. The issue persists across different post elements like Masonry and Portfolio Grid. The incorrect items are from another taxonomy.
Questions:
Why does the French version of the page display incorrect 'portfolio' posts?
How can I ensure only the correct categories are displayed on the French page?
Please note that this not a cache issue, the exact same problem persists on production, on staging, on local, and even on a completely different host and setup.
Hello Otto
I have no idea how to replicate the issue. My issue is precisely that I don't know WHY it happens, on this page, and this page only, despite every settings being correct.
I can provide access to the site for you to check.
I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue.
It would be better to a testing site where the issue is replicated.
The information you will enter is private which means only you and I can see and have access to it.
Maybe I'll need to replicate your site locally. For this, I'll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site.
This will allow me to create a copy of your site and your content.
Once the problem is resolved I will delete the local site.
**IMPORTANT**
- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields.
You provided me a link to edit the translated page using the WP editor. But when I try to open the translation following the + sign, it opens with the Classic Translation Editor.
This makes me suspect that at some point the editors were mixed, which is not recommended, and it may lead to inconsistent content.
I suggest you to try the following;
❌ Please make a full website backup before proceeding ❌
After many many tests, I found a workaround.
To remove the wrong posts from hidden link
I had to remove 'additional-sets-products-modern-fr' portfolio_category from the posts here hidden link
and 'modern-zombicide-zombies-fr' portfolio_category from the posts here hidden link
All posts had 2 categories, 1 parent category and one child category.
But in the first case, I had to remove the child category while in the second case, it is the parent category I had to remove.
Fortunately, in my situation, those categories were not absolutely necessary, but it doesn't help sorting things out, and it's still an issue, even if I don't understand where...
I suspect something linked to Taxonomy translation / hierarchy but I had checked that already.
It looks like and edge case, or it may be related to how the categories were added and translated. It's hard to tell. But we need to understand how to reproduce it in order to solve it 🙁
If you figure out the scenario that leads to this problem, let us know and we'll take a look.