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 '
'; echo ''; echo '
'; echo ''; echo '
'; // Add a container for the slideshow while ($my_query->have_posts()) : $my_query->the_post(); echo '
'; // Add class slide to each item_wrapper echo ''; echo '
'; echo '
'; echo '
'; echo '
'; echo get_the_category_list(esc_html__( ', ', 'meto')); echo '
'; echo ''; echo '

'; the_title(); echo '

'; echo '
'; echo '
' . esc_html(get_the_date()) . '
'; echo '
'; echo '
'; endwhile; echo '
'; // Close slideshow-container // Add navigation arrows echo ''; echo ''; echo '
'; // Close hand_pickup_posts_wrapper echo '
'; // Close hand_pickup_posts_outer endif; endif; } WordPress › Error

There has been a critical error on this website.

Learn more about troubleshooting WordPress.