Hi
I was trying to fetch homepage of my wordpress site, but no success form me
How can I fetch /pages?slug=home?
Hi
I was trying to fetch homepage of my wordpress site, but no success form me
How can I fetch /pages?slug=home?
You have WP configured to have a page in the home instead of the list of posts, right?
If so, you need to use the new homepage
setting on wp-source
: https://docs.frontity.org/api-reference-1/wordpress-source#state-source-homepage
Let us know if that works for you
Yeah it works; I tried putting other pages as homepage it works fine, but if I put / as path then it fetches blog posts; actually I have set static page as my home page and when you set home page as static you get / as your path to visit that page
Sorry for not making this clear when I had posted this question
Yeah, you need to add homepage
and postsPage
props in your frontity.settings.js
with the slug of each page as values, and it should work.
If thatโs the case, could you please add a note in the docs stating that if you use one you should use the other one as well?
Sure, done!
@wazidshh could you please confirm that everything works as expected when using the postsPage
option?
Great