Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

Reply To: Best Structure to use for this…?

$
0
0

BTW, this is what I am using in my function to try and get the category pre selected with form:

// The following set of functions pre-select categories for Reviews and Images in Travel Tips
add_action('cred_save_data', 'my_save_data_action',10,2);
function my_save_data_action($post_id, $form_data) {
  // if a specific form
  if ($form_data[‘id’]==1201) {
     wp_set_post_terms($post_id, array(68), 'travel-tip-category');
  }
}

Viewing all articles
Browse latest Browse all 20145

Trending Articles