i am trying to learn and create some deeper things with WordPress. My goal is to create a code/script/plugin that will allow me to post from the frontend.
I have seen many plugins, like templatic classifieds theme that submit, handle and edit posts from the frontend but are very complex with useless code for my purpose.
I would like to have a clearer view on how to get the ID, how to set a title, content and custom fields of course.
Once I go through this, I want to study it according to user_meta.
Thank you for your examples, codes, ideas, links!
To post from the front-end you can use wp_insert_post() function.
So its simply a matter of a form and processing it
the form:
the processing:
Bonus
Once you have the post id ($pid in the above example) then you can easily set terms and custom fields:
hope this helps.