Title: Show on destroy
Last modified: August 22, 2016

---

# Show on destroy

 *  [andyspeed](https://wordpress.org/support/users/andyspeed/)
 * (@andyspeed)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/show-on-destroy/)
 * Hi,
 * Everything is working great now, fantastic plugin. However I have a quick request.
 * I currently have my shortcode set to destroy after 3. I would like to display
   some links to the index pages of various pages after the loader has destroyed–
   is it possible to do this? In essence is there a way to tell it to load three
   iterations of the repeater, then destroy and show some static content?
 * Thanks,
 * Andrew
 * [https://wordpress.org/plugins/ajax-load-more/](https://wordpress.org/plugins/ajax-load-more/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/show-on-destroy/#post-5898527)
 * Hi Andy,
    It’s not currently built into the plugin, but that’s a pretty good 
   idea.
 * Thinking about this quickly you could likely acheive this using the almComplete
   function.
 * Something like the following:
 *     ```
       var count = 0;
       $.fn.almComplete = function(alm){
          count++;
          if(count === 3){
             $('#ajax-load-more' ).append('<div id="alm-detroyed"/>');
             $('#alm-detroyed').load('links.html');
          }
       }
       ```
   
 * or
 *     ```
       var count = 0;
       $.fn.almComplete = function(alm){
          count++;
          if(count === 3){
             var links = "<ul><li>Link #1</li><li>Link 2</li></ul>";
             $(links).appendTo('#ajax-load-more');
          }
       }
       ```
   
 * Please note, this is untested.

Viewing 1 replies (of 1 total)

The topic ‘Show on destroy’ 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/)

## Tags

 * [destroy](https://wordpress.org/support/topic-tag/destroy/)

 * 1 reply
 * 2 participants
 * Last reply from: [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/show-on-destroy/#post-5898527)
 * Status: not resolved