What I wish to do is to produce a simple front-finish publish submit form, for each different kind of publish I'll use in my Wordpress application. For instance you will see articles, occasions, quick messages and individuals types may have another design/structure for any user to determine. Author uses individuals forms to publish their content.

So far as I understand, I may have a different template for individuals types using the if in category function however i am thinking about alternative solutions (maybe better). I understand that there's page_template to include within the array http://wpengineer.com/1229/puplishing-extend-of-wordpress/ but can there be other things?

Also I'm getting some difficulties to redirect as well as echo the published link (as below). For the concern, I am unable to echo the $link .

Appreciate your help.

if(isset($_POST['submit'])){

    global $user_ID;

    $new_post = array(
        'post_title' => $_POST['post_title'],
        'post_content' => $_POST['post'],
        'post_status' => 'publish',
        'post_date' => date('Y-m-d H:i:s'),
        'post_author' => $user_ID,
        'post_type' => 'post',
        'post_category' => array(0)
    );

    wp_insert_post($new_post);
}

I attempted this for redirect without luck even I echo the hyperlink

$pid = wp_insert_post($new_post);
$link = get_permalink( $pid );
echo $link;
wp_redirect( $link );

you do not save the came back p(age_)id in the wordpress_place_publish(). only use:

$pid = wp_insert_post($new_post);

and also the relaxation from the code should work fine