Skip to:
Content
Pages
Categories
Search
Top
Bottom

Auto create sub forums

  • I’m attempting to create a pretty large user driven content site.

    essentially the users will be uploading information about specific places on a map.

    I’d like to have the possibility to add subforums when the users upload content.

    For example, when the user places content on one section of the map, a subforum is created in that region with the title the user gives.

    Has anything like this been done before? or am I on my own.

    Thanks

Viewing 1 replies (of 1 total)
  • 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 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar