The team is now working on the WordPress Interactivity API. This unblocks the same UX Frontity framework enabled but directly in WordPress Core, fully compatible with the new Site Editor.
Iāve just migrated my regular WP site to an AWS+Vercel hosted Frontity site and it was mostly a smooth process (great Tutorial by the way, Frontity team!).
However, I canāt seem to navigate to my category pages. They return a 404.
I canāt share my code as itās not in a repository yet, but Iām just using the twenty-twenty theme provided by Frontity. No modifications made.
I see an error in the console regarding a string being āsplitā but Iām not sure if this is related.
Any ideas?
Thanks in advance.
mburridge2
Hi @rob_cal_uk
Welcome to the Frontity community.
Did this work for you in your dev environment? Iāve set up an unmodified twentytwenty-theme locally and I canāt access any categories from your endpoint. I also get the āsplitā error in the console.
What permalink settings are you using in WordPress? What happens if you try changing them?
rob_cal_uk3
Hi @mburridge - thanks for replying.
It didnāt / doesnāt work in my dev environment (which still pulls from the live WP site) and even with a different theme.
Changing the category base to blog results in a 404 too.
Iāve always been able to see the categories in the state (perhaps you have also) - screenshot below - so I donāt understand why the app cannot display them.
Shall I report this as a bug somewhere - or is there more exploration to do?
mburridge8
Hi @rob_cal_uk
Try using the āPost nameā permalink setting, but with āblogā in the āCategory baseā. What happens then?
It looks like that for categories isFetching remains true, and isReady remains false implying that nothing is coming back from the endpoint for that route.
The value here will be what you define in Settings ā Permalinks ā Category base in the WordPress admin.
Let me know how you get on. For more info see here.
rob_cal_uk13
Thank you @mburridge - works perfectly.
Do you know if the issue was that the base URL for category pages wasnāt defined at all, or that thereās a default set for the categoryBase value which didnāt match my specific setup?
mburridge14
Hi @rob_cal_uk
There isnāt a default for categoryBase. If you leave it out of your configuration in frontity.settings.js and look at the state youāll see that itās just an empty string. I think the problem was that you had the Category base set in the WP admin, so you also needed it in your Frontity configuration.