Support

Account

Home Forums Front-end Issues group field in frontend page Reply To: group field in frontend page

  • 
    $current_user_id = get_current_user_id();
    $args = array(
      'post_type' => 'customers',
      'author' => $current_user_id
    );
    $posts = get_posts($args);
    if ($posts) {
      $post_id = $posts[0]->ID;
    }