This is, because the form in the source with id “post” doesn’t have attrib enctype with value “multipart/form-data”.
So what You have to do is just add to it with a litle javascript.
jQuery(document).ready(function(){
jQuery("form#post").attr("enctype", "multipart/form-data");
});
Or You can edit wp source.
Hi,
In fact the solution is very easy.
After registering you post type:
register_post_type('robka_classified',$args);
flush_rewrite_rules();
flush_rewrite_rules will do it for you!