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
Is it possible to set latitude and longitude from wordpress API rest ? #21
Comments
Dear @charmosz, I don't know the limit of the Wordpress Rest API, but here is what you need:
Here is what Then, I use those functions, the first is to set the marker data define above, the second adds a private taxonomy to the post, so the plugin can query it a lot faster than with a metadata query. This private taxonomy is mandatory for the query to work:
I'm not sure if the REST API allows you to set private taxonomies, I never used it ! |
Wonderful !!! Thanks. FYI, I didn't succeed in setting the taxonomy through the API. As a workaround I set default_term in the register_taxonomy function. So now every new custom post has this term by default. |
I use integromat and wordpress rest api to create a post with custom fields (made with ACF). I would like to set latitude and longitude of this post directly through the API instead of doing it manually in wordpress after the creation. Is it possible ?
By the way thank you for this great plugin !
The text was updated successfully, but these errors were encountered: