-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get home page? #356
Comments
This looks like a bad documentation issue on our end; Unfortunately there is no obvious way I can think of to accomplish what you want. The best I could suggest would be to |
You can register custom endpoint and get the homepage from there. See the code they used for wuxt:
Then you can get the homepage by calling WPAPIInstance.namespace('wuxt/v1').homepage() I hope it helps |
Thank you for the example! @panayotoff would you be comfortable with me adding this snippet to the docs as a FAQ item guide? |
How to get home page using path() not an id() filter?
wp.pages().id(2).... works well
wp.pages().path('/').... said wp.pages(...).path is not a function
The text was updated successfully, but these errors were encountered: