title: How to add post into a category programmatically
body: <p>I'm new to Wordpress and php,so sorry for my basic question.
  I want to add some posts in a category programmatically.
  For example every day i want to select some posts and insert them into a category with php code and for next day replace some other posts.
  Is it possible? How?
  Thanks in advance.</p>