-
Notifications
You must be signed in to change notification settings - Fork 882
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
allow setting _yoast_wpseo_primary_* via WP Rest api meta fields #15750
Comments
Well, there's also a request to get posts based on the primary. So it isn't strange to have away to set those ID's via the API either. |
Nice! Would you guys recommend a possible workaround at the moment where we can set the primary category along with the request or as a side effect of the API action? |
OK, just following here with a workaround which seems to work fine. |
You meant CPT, does this work for normal Posts as well? |
I haven't tried on regular posts, I'm afraid. But I can't think of any limitation which would prevent this from working? |
Hi guys,
|
I would like to be able to POST to
/wp-json/wp/v2/:post_type/:id
with a payload such:and with that, setting the primary category of a post, as expected.
The text was updated successfully, but these errors were encountered: