If you just want to target the first item you can define a variable $first_round=true before you start the loop. Inside the loop, towards the end, you do $first_round=false. So this variable is only true the first time you go through the loop and you can add
if ($first_round) echo '<div>...</div>'
right after your call to the_post_thumbnail().
Related Posts:
- List events by month
- Validate Custom Post Type fields
- Accessing download link from the loop with WP Download Manager Pro
- How to Add Custom Taxonomy To Woocommerce Plugin
- Prevent trash/delete action on specific post types
- register_taxonomy with multiple object type and update_count_callback
- How often do you need to register_post_type?
- How to use a dedicated template for the Custom Post Type from a plugin?
- Custom post type loops with different page templates
- How to register custom post types in a plugin?
- Row actions not showing? Why?
- How to have the right design for a custom post type without accessing themes
- Dynamic Custom Post Type Plugin
- Display custom field of specific post where post title matches variable
- Custom Post Type | Fatal Error on register_post_type()
- Set object terms not working on plugin activation
- GravityForm: Populate Dropdown with custom post type [closed]
- Admin notice not displaying
- Very Slow Page – How to Optimize # of Queries?
- Custom Post Type Loop throws 500 error when used in widget
- custom post type not showing in menu
- If post has custom field then display css-class
- CPT + CMB2: data not displaying for only first post in loop
- Adding a custom post type taxonomy template in plugin
- Replace text in post from cvs
- How do i calculate the total of values of custom fields in custom post types?
- I would like to have different styles for my posts based on the content of each post
- Checking if Post Title is Unique as Loop Criteria
- Custom Tag Description unable to display just below and outside of the Loop
- Creating a custom post type, adding custom meta fields, preventing all future editability of posts of this type
- Use custom metabox to update automatically a post after a given date
- Make a custom_post translatable
- Problems wp_insert_post and save_posts filter
- Custom fields for custom post type
- Redirect to another page using contact form 7? [closed]
- Including all post id’s of a custom post type into an array
- How can I group posts by months and years?
- Trying to Create a PHP Variable for post_type that can be referenced Site Wide
- Main query not querying any posts in custom taxonomy template
- Loop increase number
- Using wp_query to modify the loop in index.php for a CPT
- ACF in wordpress
- post_parent in custom post type
- Control content before and after custom post type loop
- Dynamically insert code to custom post type loop
- Show current custom taxonomy
- How exclude or skip post type with get_next_post_link
- WordPress: Custom User Role cannot access Custom Post Type | “Sorry, you are not allowed to access this page”
- How do I add custom HTML to the content of an archive page’s posts?
- How To Post WordPress Custom Post Types to Twitter via IFTTT
- Unable to format dates to put in event calendar
- Filter content in shortcode
- Custom post type in Custom widget – $listItem
- Types plugin custom post add_action hooks
- Accessing a protected property of a post
- Compare Two Custom Post Types Using The Same Custom Taxonomy
- How can I increase the post count for custom post types only?
- Show the categories the current post has
- Custom post type page with parameter
- Fetch data from two custom post types and create multidimensional array for output to html table
- Change Dropdown jQuery to show/hide but with default place holder that shows all
- Page that lists publications by classifying them by taxonomy
- i need to make custom cron_schedule with custom interval time as a parameter into a custom payment gateway plugin wordpress
- How to show the post which checkbox is not selected
- How to get the custom field value using SQL query
- Is it possible to get the specific content on the search page?
- Pagination not working in custom post type. Help
- Plugin Development using classes – Public & Private Callbacks
- Problem with checked box on wp car manager plugin
- when looping through custom post data not appearing
- Custom Post Type has wrong label and is not found when called by a loop
- Set a template on a custom post in the plugin
- Combine multiple separate lists into one
- Looping to organize and display custom posts by category using PHP and WordPress
- Restrict Custom Post Type to One Item
- Custom Post Type Front Page Gives 404
- Show Post columns to specific users on condition
- Show parent category and subcategory once in while loop
- Having issue on Loading Meta Data From CSV to CPT
- WordPress trying to query two custom types to get child from the parent
- get_permalink() of page the enclosing page not posts
- Run query on specific admin options page and send results to select field in another function
- Custom post type that lets users create a set of posts?
- Display related post content and custom field content
- Can’t save custom post type fields
- Error in WP Query. If variable is empty it is displaying previous post value
- Strange behavior on WP_query
- Show custom taxonomy not in submenu
- Loop carousel slider in wordpress
- How to Fix WordPress 500 Internal server error due to custom post type
- get_post_types doesn’t work in plugin
- WordPress Custom Post Type and sort by Tags
- Posts without featured image using other post’s featured image
- Order by custom field attribute
- Add Excerpt On Quicksand Plugin
- Looping taxonomy in taxonomy?
- Query Custom Post Type by Tag
- How do I filter a custom post type loop by a field?
- How to dynamically register custom post type
- public custom posts not showing in my wordpress plugin