The ID has to be unique for all the posts, so I would suggest that you concatenate btn1-ID> in your code.
That and change your jquery selector code. That should do the trick!
Related Posts:
- Jquery Slider for profile template
- Add Infinite Scroll to Ajax Loaded Category Query
- Load comments per post on click with AJAX
- angularjs not displaying all posts
- Get Page content to displayin Bootstrap Modal
- ACF – add a group inside a repeater [closed]
- Fetching posts from wordpress function in ajax
- Using jQuery .after inside loop
- Active class for my flexslider in WordPress
- Code to check amount of blog posts and add css
- Pass WP post content to a jQuery plugin (Fancybox)
- WooCommerce – Checkout suddenly stops working [closed]
- How to display Yoast SEO meta description in archive template for each post instead of the_excerpt()? [closed]
- Why do themes rely on “The Loop”?
- How to place comments_template(); outside the loop?
- Endless loop with wp_insert_post and wp_update_post
- How do I prevent one of two multiple loops from repeating on a second page?
- Hook into the loop via a plugin, and output something after every X post?
- Two custom loops, pagination, offset
- How are both HTTP and HTTPS versions displaying?
- Access to Media Library
- Getting two wp_link_pages output
- post loop causes wp_users and wp_usermeta DB queries for each users
- How do you split multiple-column loop on category archive page?
- How to Loop within a Loop (Display Children and then Grandchildren)
- Run The Loop over array of post objects
- Enable infinite scroll on single.php [closed]
- How to loop through ALL pages?
- Does get_template_part pull data once in a loop?
- Get titles of all posts with current tags except current post
- How to retrieve “sticky” post outside the “loop”?
- Creating a multi-taxonomy query, excluding the newest (read: highest ID) taxonomy term
- Show a different post every 3 days [duplicate]
- Using get_the_excerpt() Before The Loop
- code suddenly appearing from my tempate second loop
- Get post/page data outside the loop
- What is the maximum number of posts a WordPress loop can work with?
- wp_query inside the_loop
- How to go about combining dropdowns / filter queries?
- woocommerce get_price_html not pulling in correct price
- How to fix pagination for custom loops?
- WordPress Rewriting the DOM?
- How to display posts by vote count and if no value continue with latest posts with no votes?
- Sort results by groups of numbers and letters
- Modify the main loop to display current month / year
- Basic multiple loops only displaying first loop
- Display post list with different styles
- Loop for sticky posts
- Get author_id in wordpress
- Single.php different behaviour from admin to non-admin
- Array ids post to function have_post
- Give each posts in a loop a number in sequence
- custom post on homepage
- get_comments with post_status ‘public’ retrieves NULL result
- I have broke my pagination, same posts on all pages (index.php)
- Filter existing hook using parameter and foreach loop
- Run “the loop” in a random order
- Exclude category from get_the_category
- Search page loop banner image issue
- Video post format, extra content breaks video embed
- Why is my category post repeating twice
- Getting selection of posts based on loop variables via Ajax
- Why would this code work locally but break online?
- Why would a completely normal loop give offset errors and maximum execution time errors?
- Avoid WP_Query’s duplicate posts with taxonomies
- Offset for Loop
- Properly loop through and paginate page on each function call
- Why does my WP_Query pagination on a custom page.php only loads the homepage?
- WordPress finding posts on 404 page
- Get a Post Loop based on Logged in User information into a Shortcode
- display post pdf attachments in side bar with link text
- Show the subcategory name based on current product
- Last post in loop when even
- Use the loop to check if DB record exists?
- Customizer settings using “for” loop
- Split Content and Gallery
- Search – Check if post is a page on search page
- How can I make this iterative conditional within the Loop work via function?
- Repeat code, change variable?
- Show all child categories associated to post ID within loop
- Ajax category pagination problem
- Unable to login + Redirect loop on mobile
- Running the Loop outside of WordPress
- how to use custom loop in the_content filter
- Twitter bootstrap carousel multiple items in carousel
- Display all existing members
- Combine Query and Select Database to create directory loop
- My custom query not detecting the correct category
- 2 loops in blog homepage
- Change loop to display items in order
- In Loop Output Place Custom Field Content In Between Paragraphs
- wordpress showing all posts instead of date range
- Help with add_filter(‘the_content’, ‘some_function’) and multiple matches
- Single Loop With Dual Content Area
- ACF loops false value with repeater and checkbox
- How to do query_posts on tags pages
- the_content() “crashes” for single pages
- Prevent duplicating specific column from database table
- Divide loop into several columns based on post custom field and enable infinite scrolling
- Query Loop Block: possible to restrict just child pages?