Title: Multiple instance duplicates button load more IDs?
Last modified: August 22, 2016

---

# Multiple instance duplicates button load more IDs?

 *  Resolved [downfast](https://wordpress.org/support/users/downfast/)
 * (@downfast)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/multiple-instance-duplicates-ids/)
 * [Your example of the multi instance](http://connekthq.com/plugins/ajax-load-more/examples/multiple-instances/)
   shows that it always uses `#load-more` as an ID for the load more button. This
   is bad for html as it duplicates IDs and also makes it impossible to target each
   different button if some customization is required. It is a quite urgent thing
   for whoever uses multi instance.
 * Is there a quick solving way you can suggest or that you can do?
 * Many thanks
 * [https://wordpress.org/plugins/ajax-load-more/](https://wordpress.org/plugins/ajax-load-more/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [downfast](https://wordpress.org/support/users/downfast/)
 * (@downfast)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/multiple-instance-duplicates-ids/#post-5773853)
 * Actually even the container has a duplicated ID with `#ajax-load-more`
 * How can we do so that each container and button (urgent in my case) has a unique
   identifier?
 * p.s. obviously I can target the class and use `$this` but unique ids would be
   much better for all.
 * Thanks
 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/multiple-instance-duplicates-ids/#post-5773854)
 * The #ajax-load-more is a legacy issue. The multiple instances work just fine 
   even though the ids are not unique. The plugin does not target these ids at all.
 * Feel free to remove the ids via JS or hack the core if this is an urgent fix.
 * Cheers,
 *  Thread Starter [downfast](https://wordpress.org/support/users/downfast/)
 * (@downfast)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/multiple-instance-duplicates-ids/#post-5773856)
 * That’s good to know but it is not just good for validating but I will have to
   use jQuery as if I hack the plugin, then each time you’ll make an update we will
   have to change it again. Thought might be a quick update you could do in the 
   core.
 * Ok anyway I will do it via my js.
 * Thanks
 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/multiple-instance-duplicates-ids/#post-5773858)
 * Ya it would be a quick fix I just have not removed it in case users were targeting
   that div id for styling.
 * Cheers,
 *  Thread Starter [downfast](https://wordpress.org/support/users/downfast/)
 * (@downfast)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/multiple-instance-duplicates-ids/#post-5773860)
 * You should and could anyway, because you already gave us the opportunity to add
   our own classes to containers and buttons which is also great for multi instance
   and styling 😉

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Multiple instance duplicates button load more IDs?’ is closed to new 
replies.

 * ![](https://ps.w.org/ajax-load-more/assets/icon-256x256.png?rev=2944639)
 * [Ajax Load More – Infinite Scroll, Load More, & Lazy Load](https://wordpress.org/plugins/ajax-load-more/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ajax-load-more/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ajax-load-more/)
 * [Active Topics](https://wordpress.org/support/plugin/ajax-load-more/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ajax-load-more/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ajax-load-more/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [downfast](https://wordpress.org/support/users/downfast/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/multiple-instance-duplicates-ids/#post-5773860)
 * Status: resolved