Posting with php directly to bbPress fails. how to do it properly?
on my page i use the wordPress function to do some automatted posts. however, they do not show up. Only after doing the repair tools they are available.
This is how i do it :
$post = array(
‘post_title’ => $topic,
‘post_content’ => $message2,
‘post_type’ => ‘topic’,
‘post_status’ => ‘publish’,
‘post_author’ => $authorId,
‘post_parent’ => $parentID,
$topicid = wp_insert_post( $post, $wp_error );
The post_meta is not set properly. So what do i have to do to make it work?
- You must be logged in to reply to this topic.