Home › Forums › WordPress › Avoid Current Post from Recent Posts List This topic has 1 reply, 2 voices, and was last updated 2 months, 2 weeks ago by avneesh. Viewing 1 reply thread Author Posts October 3, 2024 at 11:49 am #144 aviParticipant I want to get all recent post list but not that post which is opened This is My Code : get_posts( array( 'posts_per_page' => 10, 'post_type' => 'post', 'orderby' => 'post_date', 'order' => 'DESC' )); October 3, 2024 at 11:50 am #145 avneeshParticipant Add post__not_in in your array : $post = get_post(); get_posts( array( 'post__not_in' => array( $post->ID ), )); This reply was modified 2 months ago by softechquery. Author Posts Viewing 1 reply thread You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In