It looks like your loop is running through all the posts, your array of post id isn’t getting passed.
However, you may be able to make the call using this code
Get excerpt using get_the_excerpt outside a loop
tl;dr
$text = apply_filters('the_excerpt', get_post_field('post_excerpt', $post_id));
Related Posts:
- How do I use WP_query with multiple post IDs?
- Query multiple custom post types in single loop
- Build a content and excerpt grid loop with paging and options for # of posts
- Using Cookie Data For WP_Query Loop
- wp_delete_post deletes all posts instead of just expired ones
- Alter secondary loop to exclude posts from current page category
- How to add 2 posts under another post? Formatting should be intact
- Trim first 2 words of the exceprt
- Display Post co-authored in Author Page
- Sorting Posts | Alphabetical Order
- Get taxonomy terms only of the WP_Query current posts
- Looking for most performant way to execute several similar WP queries within shortcodes
- Get the last month with posts using a recursive function…
- How to query for pages/post depending on slug?
- WordPress custom slug (endpoint) and compare all links
- Create WP_Query to search for posts by their categories or their parent/child categories
- wp_query with cat not working
- How to use an associative array in post__in with WP_Query?
- Recent Posts slider, using WP_Query(), loads duplicate sliders
- Compare post-IDs within WP_Query? (Less than / Greater than)
- How to use $query->set with post__in?
- Why do WP_Query results change after updating unrelated Advanced Custom Fields (ACF)?
- Display a specific category of products in shop page and disable code for specific actions
- WordPress, AJAX and pre_get_posts using conditional tags
- get_posts() and WP_query limits ‘AND’ conditions to a maximum of 6 for meta value queries in WordPress
- Exclude posts based on meta value
- Custom query, checking values of multiple meta keys
- Remove echo from shortcode
- How Can I use WP_Query to Only Display 1 Post from Custom Post Type if Query Returns Posts with Matching ID in Custom Field
- unable to use ‘new WP_Query’ in AJAX call
- wp_query get the 2nd post
- How to add div blocks after certain set of post
- WP_Query | IF within $args array | Help me only add specific arguments if the argument is not blank
- Convert a string into a decimal number for use in query
- Array to string conversion on array_map
- Increment paged on WP_Query
- Target post_date_gmt if it’s empty or not set
- Hide posts if user is added to it WP_query
- Get all posts as an array ID => Name
- How to hide posts of a specific custom category in WordPress?
- How to insert wp_users ->user login name to wp_terms when a new user registering?
- Passing an array into WP_Query as a variable
- Custom query vars filters problem with pagination
- Order BY Most Liked And Published Between Previous Week Monday And Next Week Monday
- Modify main query before it run without pre_get_post
- WordPress WP_Query without query GET parameters
- Sort posts in a specific way
- Do not duplicate posts with multiple categories in multiple loops
- posts_nav_link pulling in multiple post types
- Displaying Event within two given time frames
- Remove Post if Advanced Custom Field is checked to fix paging
- displaying a fall back query if there’s nothing in the post-type category
- Modifying WP URL handing code?
- Search AJAX Filters – Multiple Query Loops Into One Loop (Optimization)
- WP_Query: How to get results from both meta_key options?
- Free search and custom taxonomy query not providing the same result
- How do I reset $wp_query in a function?
- Isn’t Returning Value While Using SELECT COUNT(*) FROM {$wpdb->prefix}
- wp_query with multiple arguments with AND
- Passing in MySQL prepare statement parameter separately throwing error
- Replace a single variable with add_filter
- Nested Queries of decreasing specificity
- Wrong pagination results, page counter resets when navigating
- Is it possible to order posts using multiple meta queries, i.e. show posts from first meta query, then the second?
- Sending simple variable on single page to WP JSON
- How to exclude meta no index pages from wp_list_pages
- Load more posts using AJAX based on posts inside WP_Query
- in_array not working on dev server but works on localhost
- meta_query search names when they have middle initials
- WP query posts BUT show the most recent and one per author
- Define global custom post
- How to select post ID for given parent name with nested prepared queries?
- posts_per_page displays only 2 posts instead of 4 posts
- Assign meta_query value to php variable
- Need to show 7 posts from actual date
- Add code to the header of posts by particular author
- Search for single post by 2 tags
- Paged WP_Query is quitting on page 3
- Get Child of Child Pages in custom Menu
- Meta query not showing result properly
- Woocommerce Related Product by 2 taxonomy
- Help on Wp_query to print an term
- Making list of posts with chosen description
- Ordering / grouping posts by datepicker ACF
- making a search.php query
- Efficient way of querying for a “fallback” post?
- How to add thumbnails from recent posts to owl-carousel in wordpress automatically?
- Can’t get data from audio media
- Create a hierarchical loop at predefined markup requirements
- WP_Query count of different meta key values [duplicate]
- Querying posts based off a jquery datepicker
- Query seems to be duplicated
- Keeping the previous get value and add another value when submitted
- Pagination in category.php not functioning
- Fix incorrect related posts code snippet
- wp_query on search results page showing all results every time
- How to use a conditional statement in a post loop but not count towards the “posts_per_page” if false
- wp_logout action hook is not firing
- Add up all numbers from a WordPress query [closed]
- Developing a “fallback” for empty wp_query results based on post dates