Setting a category to a post programatically
-
Hello,
in my blog users without registration can make posts. I use a special plugin in wich you can design your post form. In this form I have a selection box(with all the categories present) in wich the user can select the category of its post.My problem is that I don’t know how can I set this category to this post programatically.Do you know the command(sequence of commands) that allows me to do that?
Please help me, it will be very helpfull for my blog
Thanks a lot -
-
But I think that the way to add a category is independant of the plugin because when you write a post as administrator you can set the Category of the post.So if you know the way I can do that please help me,I am spending a lot of time trying to guess it by myself.
Thanks a lot -
We don’t use the same software here so you need to head over to wordpress.org where they do use the same software.
- The topic ‘Setting a category to a post programatically’ is closed to new replies.