bsieders
Member
Posted 2 years ago #
Hey WP Freaks,
I have a custom meta box which allows users to select from a set of categories in a drop down list.
To use this selection as the category of the post I have then successfully used wp_set_post_categories function in a custom save_post action.
HOWEVER this doesnt work when I want to edit the post after submitting though. Ive been at this for a week now, any ideas why this is not working or for alternative approaches? How does one do this through a wpdb query for example?
Thanks,
Balthazar
bsieders
Member
Posted 2 years ago #
Hi Michael,
thanks for your response. I need to use categories because the posts are actually descriptions of products which have to be organized in an easy to edit system by the clients. I've used both those plugins in the past but unfortunately they do not apply in this case.
I'm sure what i'm asking is not impossible since wordpress updates the categories every time you change them when editing a post.
Any other takers?
Cheers
bsieders, you should post your code on http://wordpress.pastebin.com and link to it from here so that other people can take a look at it.