Function Reference: geodir_get_lists_by_user_id
Summary
This function has not been documented yet.
Source File
geodir_get_lists_by_user_id() is located in geodir_list_manager/geodir_list_manager.php [Line: 324]
Source Code
function geodir_get_lists_by_user_id($user_id = 0) { if(isset($_GET['list_id'])) { $pid = (int) sanitize_text_field(esc_sql($_GET['list_id'])); $listed_posts = gdlist_get_all_listed_posts($pid); $post_ids = array(); foreach($listed_posts as $key => $lp) { $post_ids[] = $key; } if ($post_ids) { geodir_get_reviews_by_user_id($user_id, false, $post_ids); } else { ?>100, 'post_type' => 'gd_list', 'author' => $user_id ); $lists = new WP_Query($query_args); if ($lists) { ?>
-
have_posts() ) : $lists->the_post();
gdlist_single_loop_item();
endwhile;
wp_reset_postdata();
?>