Skip to content
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 EDIT posts Terms? #67

Open
rdzak opened this issue Dec 21, 2014 · 0 comments
Open

How to EDIT posts Terms? #67

rdzak opened this issue Dec 21, 2014 · 0 comments

Comments

@rdzak
Copy link

rdzak commented Dec 21, 2014

I'm trying to EDIT (remove, add new etc) Terms in post.
Currently I'm getting a post and editing its other properties (title, content) by assigning new values, however that doesn't work for LIST of terms. I'm ale to create new post using terms_names, which is fine but how to edit existing one? I have tried using post.terms property and assign new list of Terms (instances of WordPressTerm), which I retrieved using filter (or simply id):
new_ terms = []
new_terms.append(client.call(taxonomies.GetTerms(taxonomy, {'search': term_name})))
And now assign it to existing post:
existing_post.terms = new_terms

That doesn't work as even though I'm posting it, no new values are showing.
Can anyone help?

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

No branches or pull requests

1 participant