How can I add and submit the post without user login? By that I mean an offline user can add some content on WordPress and submit it, like simple forms in PHP.
I tried this code:
public function add_shortcode_fileds() {
add_shortcode( 'add_fields', 'input_fields' );
function input_fields( $atts ) {
$atts='<form method="post" action="">';
$atts.='<input type="text">';
$atts.='<input type="submit">';
$atts.='</form';
return $atts;
}
}