Skip to content
This repository has been archived by the owner on Apr 4, 2020. It is now read-only.

Possible with the meta of CPT? #17

Open
ssuess opened this issue Feb 23, 2017 · 2 comments
Open

Possible with the meta of CPT? #17

ssuess opened this issue Feb 23, 2017 · 2 comments

Comments

@ssuess
Copy link

ssuess commented Feb 23, 2017

Hi, I was having problems getting updates to and creation of postmeta working until I installed your plugin, and then it started working for the built in post type, but still would not work for my custom post types (despite them being exposed and working for retrieving postmeta). Is there some coding change I could make here that would also enable posting data to the meta endpoints of CPTs?

@ssuess
Copy link
Author

ssuess commented Feb 24, 2017

ok I just discovered that this will allow writing to CPTs as well, but via /wp-json/wp/v2/posts/id/meta instead of /wp-json/wp/v2/cptname/id/meta...is this the expected behavior?

@ssuess
Copy link
Author

ssuess commented Feb 27, 2017

In case this helps someone else looking for the same, here is the solution I came up with.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant