Hello,
I have installed WordPress site with given path: http://localhost/sites/wordpress/.
And i have frontity site in given path: http://localhost:3000
I set WordPress URLs in frontity.setting.js like below:
const settings = {
name: "frontity-search",
state: {
frontity: {
url: "http://localhost/sites/wordpress",
title: "Test Frontity Blog",
description: "WordPress installation for Frontity development",
},
},
packages: [
{
name: "@frontity/twentytwenty-theme",
state: {
theme: {
menu: [
["Home", "/"],
["Blog", "/category/fruits/"],
["Classic", "/category/classic/"],
["Markup", "/category/markup/"],
],
featured: {
showOnList: false,
showOnPost: false,
},
},
},
},
{
name: "@frontity/wp-source",
state: {
source: {
api: "http://localhost/sites/wordpress/wp-json",
},
},
},
"@frontity/tiny-router",
"@frontity/html2react",
],
};
export default settings;
When i visit below url then it shows 404 page.
http://localhost:3000/category/fruits/
If i convert my Wordpress URL like: http://localhost:10001 using virtual host then it is working.
It seems frontity does not show posts by category having sub directory wordpress site.
Also, one more thing i want custom filter with form to filter post by custom field how it can be done?
Let me know if you get any ans.
Thanks.