We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, i think in wordpress are Tags normaly "strings" why i should put a slice of ints to the tags when i create a post?
Tags []int json:"tags,omitempty"
json:"tags,omitempty"
How does it work?
I want to tag my post with "apple, banana, test" and so on.
The text was updated successfully, but these errors were encountered:
I believe it's because the tags in this case are integer primary keys.
Sorry, something went wrong.
@robbiet480 do you have an idea how i can achive this?
// create non existent tags or take existent and put id to int slice func SetOrCreateTags(tags []strings) *[]int {}
@n0v3xx I'm sorry, i'm not in a position to help as I no longer use this library, let alone WordPress.
No branches or pull requests
Hi,
i think in wordpress are Tags normaly "strings" why i should put a slice of ints to the tags when i create a post?
Tags []int
json:"tags,omitempty"
How does it work?
I want to tag my post with "apple, banana, test" and so on.
The text was updated successfully, but these errors were encountered: