You are getting the option “blog-featured-post”, which apparently returns two posts. Then, for each of these posts, you are making a query.
Only the second one is actually used, since your if ( $q->have_posts() )
is outside of the loop. This query only has one post, since you use the post ID with the post__in
option.
So this is expected behavior.
Related Posts:
- Should we trust the post globals?
- Get first post from wp_query
- WP_Query: Why is sticky post not first item in loop?
- Query *only* sticky posts
- How do I reorder (pop and push) items from WP_Query?
- How to exclude latest x posts from a paginated query?
- Reverse chronology of post listing
- WordPress Number of Posts Not Changing With posts_per_page
- This AJAX Code Doesn’t Work – Looking for elegant solution
- Specific loop in Shortcode
- Search widget breaks when using multiple loops?
- Converting multiple loops into one single loop with pagination
- Display posts with comments closed, with pagination?
- Group posts by year in loop
- How would I get 1 latest post from a query for 5 posts?
- Loop through all product posts?
- WP Query – duplicated posts once including tags in search results
- Display post from current category and same tag?
- Why WP_Query(‘showposts=5’) shows only 1 post?
- Blog post per page setting conflicting with custom WP_Query?
- How to exclude latest x posts from a paginated query?
- WP Query – Posts Per Page not working in combination with category__in
- Pausing and Resuming WP_Query results
- How to : pagination in 3 different custom loops on the same page
- List authors with the last post title and order by last post date
- wp_query random post
- Possible to alternate between two loops
- How to get posts published on the latest date?
- Page and post loop same template
- Getting blog pagination to work on page set as front page
- Display current post position in Elementor Posts widget
- WP_Query: Show 10 posts in date order, first three random
- WordPress Loop: How to display recent posts in multiple divs
- How to display post list in a table layout (multiple queries in single loop)
- Not all posts showing in query
- how to handle the loop using filling bootstrap grid structure?
- Custom WP_Query not working correctly
- WP_Query of Category Not Showing First Post
- Display 3 posts with different HTML markup using a loop
- While loop in functions.php outputting the_title() of each post on frontpage
- Display specific posts based on an ID of another post
- Numbered Pagination Showing The Same Posts After Altering WP_Query
- Double loop output
- Loop through all posts showing duplicates
- Wp_query loop is not working as it should
- WordPress loop uses unmodified posts array, why?
- Advanced Post Display/Pagination/Ordering
- Why I obtain this WP_Query strange behavior trying to select posts having a specific tag?
- How to show the posts list into a static page? Problems to use the loop into a static page
- Adding a category at even positions on main loop with modified pagination
- Make assigning post to a specific category equivalent to assigning it to all categories
- How do I show the post title if an advanced custom field hasn’t been used?
- First post in loop displays twice
- posts_per_page – Repeats only first posts ‘post__in’ array
- Is it possible to use the_post 2 times in one loop
- How to order posts in an arbitrary order?
- how can i change WP main archives loop to sort by name or title
- How do I stop the loop from repeating in my category template?
- get_the_category listing in hierarchial order
- Using wp_list_pages() after calling query_posts()
- how to get post order by post id wp_query?
- How many posts does the loop return?
- Display Posts on Custom Page
- How to make a sum of all posts displayed in a loop
- Exclude current custom post on single post
- Wrong post title displayed from loop
- Nested WP_Query breaking loop
- Get Value of Post before
- WordPress query_posts by tag doesn’t work anymore(?)
- why does wordpress ignore the post args?
- Multiple Loops Breaking Pages
- add to end of post in the loop with plugin
- How to display all posts divided/ordered by post date? [closed]
- First x post with another template then the others
- Why Query is returning empty array?
- How do I extract just the post ID of the first item in whatever WP_Query returns?
- Loop doesn’t show title of second post and posts thereafter
- Show post content and title in diferent divs using WP_Query using a loop
- Change all author links in Blog roll
- Why are my paginated posts always returning the same results?
- Ignore latest two posts
- Is it possible to use WP_Query to only pull posts with attachments?
- Grid post page on WordPress with Bootstrap, the_excerpt(); Problem
- Showing categories and subcategories with posts
- Second get_permalink inside loop points to wrong URL
- Get the amount of posts on a current page
- Loop parent terms {display posts} AND loop child terms {display posts}
- How to add a class to each individual post?
- Show posts by author of membership level (Paid Membership Pro)
- Inner join overrides Advanced Custom Fields plugin’s get_field [closed]
- add bootstrap post slider with tabs
- meta_value timestamp older than now
- Every second post different class in blog view
- How to add add more properties to WP_Post object in search results loop
- Loop doesn’t exclude the specified category in home page
- Get posts with multiple categories
- Do not show children of a category
- Custom taxonomy archive page problem
- Display posts of specific category term
- Loop don’t work within single.php page