Title: javaScript not working in loaded posts
Last modified: September 27, 2022

---

# javaScript not working in loaded posts

 *  Resolved [buggybuggy](https://wordpress.org/support/users/buggybuggy/)
 * (@buggybuggy)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/javascript-not-working-in-loaded-posts/)
 * Hello.
    Javacript is not working in loaded posts. How can i fix that? “Custom
   JavaScript” in settings works only once but not works on every load.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/javascript-not-working-in-loaded-posts/#post-16047182)
 * Hi [@buggybuggy](https://wordpress.org/support/users/buggybuggy/)
    You can use
   the `almComplete` callback for this. [https://connekthq.com/plugins/ajax-load-more/docs/callback-functions/#complete](https://connekthq.com/plugins/ajax-load-more/docs/callback-functions/#complete)
 * Hope this helps.

Viewing 1 replies (of 1 total)

The topic ‘javaScript not working in loaded posts’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/javascript-not-working-in-loaded-posts/#post-16047182)
 * Status: resolved