jaredvd (@jaredvd)

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • @jaredvd

    Member

    Sorry for the double post, but it seems i can’t edit again..

    I’ve made a new main page, with a redirect to where I’d like to go, and it has changed the forum slug accordingly.

    In reply to: Auto create sub forums

    @jaredvd

    Member

    looks like this is along the right path:

    $post = array(

    ‘post_title’ => ‘My forum’,

    ‘post_content’ => ‘This is a forum.’,

    ‘post_name’ => ‘my-forum’,

    ‘post_status’ => ‘publish’,

    ‘post_type’ => ‘forum’,

    );

    $post_id = wp_insert_post($post);

Viewing 2 replies - 1 through 2 (of 2 total)