Title: &#8216;Get back&#8217; button from posts doesn&#8217;t work with Query Loop Load More plugin.
Last modified: May 5, 2025

---

# ‘Get back’ button from posts doesn’t work with Query Loop Load More plugin.

 *  Resolved [mykoliux](https://wordpress.org/support/users/mykoliux/)
 * (@mykoliux)
 * [1 year ago](https://wordpress.org/support/topic/get-back-button-from-posts-doesnt-work-with-query-loop-load-more-plugin/)
 * Hi, I love the Query Loop Load More plugin ([https://wordpress.com/plugins/query-loop-load-more](https://wordpress.com/plugins/query-loop-load-more))
   but in my posts I have get back button, that gets back to the main query loop
   page. My get back button works fine when the posts aren’t under load more button,
   but with those who are, it automatically gets back to query loop page the load
   more button (unpressed). How could I fix this, when get back button is pressed
   in those post that are under load more, it would get them back to the already
   pressed load more page. 
   I hope I was clear 🙂PS. Also is there any way for the
   plugin to only load 15 more posts and then show load more again?My ‘get back’
   button code if needed:
 * `add_action( 'astra_single_post_banner_before', 'custom_back_button_before_banner');
   
   function custom_back_button_before_banner() {if ( is_single() && is_singular('
   post' ) ) {$categories = wp_get_post_categories( get_the_ID() );$allowed_ids 
   = array( 10, 11 ); // Recenzijos ir Naujienos ID
 *     ```wp-block-code
           if ( array_intersect( $categories, $allowed_ids ) ) {        echo '<div class="custom-back-button-container">                  <a href="javascript:history.back()" class="ast-back-button">← <span class="back-text">Grįžti atgal</span></a>              </div>';    }}
       ```
   
 * }

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

 *  Thread Starter [mykoliux](https://wordpress.org/support/users/mykoliux/)
 * (@mykoliux)
 * [1 year ago](https://wordpress.org/support/topic/get-back-button-from-posts-doesnt-work-with-query-loop-load-more-plugin/#post-18451246)
 * ChatGPT and some JS file saved the day!
 *  Plugin Contributor [Kim Clow](https://wordpress.org/support/users/kimclow/)
 * (@kimclow)
 * [1 year ago](https://wordpress.org/support/topic/get-back-button-from-posts-doesnt-work-with-query-loop-load-more-plugin/#post-18466824)
 * Hey [@mykoliux](https://wordpress.org/support/users/mykoliux/)
 * Thank you for sharing your findings, and so happy ChatGPT was able to unblock
   you. This is the beauty of open source: anyone can contribute improvements that
   benefit the whole community! Feel free to create a PR with the code on the repo
   for this functionality to be available to other users: [https://github.com/a8cteam51/query-loop-load-more/issues](https://github.com/a8cteam51/query-loop-load-more/issues)

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

The topic ‘‘Get back’ button from posts doesn’t work with Query Loop Load More plugin.’
is closed to new replies.

 * ![](https://ps.w.org/query-loop-load-more/assets/icon.svg?rev=3258468)
 * [Query Loop Load More](https://wordpress.org/plugins/query-loop-load-more/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/query-loop-load-more/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/query-loop-load-more/)
 * [Active Topics](https://wordpress.org/support/plugin/query-loop-load-more/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/query-loop-load-more/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/query-loop-load-more/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Kim Clow](https://wordpress.org/support/users/kimclow/)
 * Last activity: [1 year ago](https://wordpress.org/support/topic/get-back-button-from-posts-doesnt-work-with-query-loop-load-more-plugin/#post-18466824)
 * Status: resolved