Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter karakaa

    (@karakaa)

    Or maybe some workaround to fave this possibility in already existing release version?

    You have to add this code in your child theme function.php file-

    add_action( ‘wpuf_add_post_after_insert’, function( $post_id ) {
    wp_set_post_terms( $post_id, get_post_meta( $post_id, ‘wpuf_hidden_cat’, true ), ‘your taxonomies name’ );
    });

    http://img.prntscr.com/img?url=http://i.imgur.com/EsIW0oW.png

    Now, after adding these code you have to add a hidden field into your form. You have to insert the meta key name “wpuf_hidden_cat” and the value will be your category ID.

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

The topic ‘Default post category’ is closed to new replies.