function meto_hand_pickup_posts() { $query_args = array( 'post_type' => 'post', 'category_name' => 'learn', // Fetch posts from the "learn" category 'posts_per_page' => meto_get_option('opt_hand_pickup_posts'), // Fetch the number of posts set by the user 'meta_key' => '_thumbnail_id', 'no_found_rows' => true, ); $my_query = new WP_Query($query_args); if (meto_get_option('opt_show_hand_pickup_posts')): if ($my_query->have_posts()) : echo '