Title: 1ore's Replies | WordPress.org

---

# 1ore

  [  ](https://wordpress.org/support/users/1ore/)

 *   [Profile](https://wordpress.org/support/users/1ore/)
 *   [Topics Started](https://wordpress.org/support/users/1ore/topics/)
 *   [Replies Created](https://wordpress.org/support/users/1ore/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/1ore/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/1ore/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/1ore/engagements/)
 *   [Favorites](https://wordpress.org/support/users/1ore/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Media Library Assistant] Cleaning up URL queries in paginated gallery pages](https://wordpress.org/support/topic/cleaning-up-url-queries-in-paginated-gallery-pages/)
 *  Thread Starter [1ore](https://wordpress.org/support/users/1ore/)
 * (@1ore)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/cleaning-up-url-queries-in-paginated-gallery-pages/#post-17091928)
 * Thank you, David! I suspected that might be the case, since we’re playing hot
   potato with the links. I will play around with Redirection #2 and the link structure,
   but I’m also just happy with being able to use the alternate links at all : -)
   You are a life-saver and I appreciate you and all that you do!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Media Library Assistant] Cleaning up URL queries in paginated gallery pages](https://wordpress.org/support/topic/cleaning-up-url-queries-in-paginated-gallery-pages/)
 *  Thread Starter [1ore](https://wordpress.org/support/users/1ore/)
 * (@1ore)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/cleaning-up-url-queries-in-paginated-gallery-pages/#post-17074492)
 * So sorry to open this up again, especially so soon. I’ve been having a blast 
   with the new shortcode, but have had one hiccup that I’m not sure how to navigate.
   I figured I would forward it to you in case you had any insight.
 * I seem to hit performance issues(?) when several posts from across multiple years
   are queried by the gallery pagination shortcode. Sometimes the redirection will
   hang for a few seconds, and then either the white screen of death appears, or
   the gallery page renders without pagination. Interestingly, this doesn’t occur
   when the redirection is set as a normal redirection rather than a pass-through
   one—the normal redirect works like a charm.
 * I say “performance issues(?)” because as far as I can tell, neither of the plugins
   exceed the memory that WordPress allots to them. I’m playing with about 10 posts,
   dated across 5 or 6 years. Most have images attached.
 * I managed to recreate the issue on my personal website and a testing one (Fresh
   WordPress installation, default twentytwentythree theme, with just MLA + MLA 
   UI Elements + Redirection as plugins.) I have tried to be conscientious of caching
   as well, but I’m just now learning how many caches exist outside of my browser
   one 😅 Not sure how helpful pictures are in this situation, but here’s a screenshot
   of the testing environment and shortcodes:
 * ![](https://64.media.tumblr.com/2909c088aded1622ee9fd955e35e118d/636697ee1823c008-
   63/s1280x1920/a8f8ca7fe3f28ad6f89f19391c371aaf8d028e65.pnj)
 * ![](https://64.media.tumblr.com/be1658a70c6c7917975ef1bc9346477d/636697ee1823c008-
   22/s1280x1920/6447ca756be325218cdf4508d3d7a6612443fb71.pnj)
 * Interestingly, things seem to work better when the same number of posts are sorted
   into a shorter timespan of two or three years. But maybe that’s my imagination?
 * ![](https://64.media.tumblr.com/88d6d0c30abc033b81e65ca27dba3ecb/636697ee1823c008-
   fe/s1280x1920/f18107451c11f8be37d7e290b1cc0efb2c4b209c.pnj)
 * In any case, I realize this is a lot of work for a short string of letters and
   slashes, so I’m happy to leave them as standard redirects for now. Thank you 
   so much for your time and all that you do!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Media Library Assistant] Cleaning up URL queries in paginated gallery pages](https://wordpress.org/support/topic/cleaning-up-url-queries-in-paginated-gallery-pages/)
 *  Thread Starter [1ore](https://wordpress.org/support/users/1ore/)
 * (@1ore)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/cleaning-up-url-queries-in-paginated-gallery-pages/#post-17038562)
 * I have only just installed it, but from what I can tell, it works like a charm!
   I keep tabbing back and forth between pages and grinning like an idiot. Thank
   you so much for this, I don’t know where I would be without your help. I kicked
   some change over to your Chateau Seaview Fund and am very moved that you give
   so much to strangers on the internet. Thank you!
 * 
   (Also, just wanted to add this in case someone uses this example plugin and 
   has the same thought that I did. When setting the redirection in the redirection
   plugin, the landing page will serve the target “?muie_current_archive=”-format
   URLs, unless you pop open the advanced settings and change the redirect action
   to “pass-through.” This will retain the source/reformatted URLs in the searchbar
   even after the page is redirected : -) )
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Media Library Assistant] Cleaning up URL queries in paginated gallery pages](https://wordpress.org/support/topic/cleaning-up-url-queries-in-paginated-gallery-pages/)
 *  Thread Starter [1ore](https://wordpress.org/support/users/1ore/)
 * (@1ore)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/cleaning-up-url-queries-in-paginated-gallery-pages/#post-17031748)
 * OK, turns out that day would be today. After much fiddling, I *think* everything
   is working as it should.
 * So, the Archive plugin constructs a page with the URL: `http://m0r1bund.local/
   moribund-art/?muie_current_archive=post_date%2CY(2021)`
 * Redirection converts the above URL to the desired URL: `http://m0r1bund.local/
   moribund-art/2021/`
 * ![](https://64.media.tumblr.com/57c143dc7c6b684adb420cbfe5e85071/636697ee1823c008-
   e0/s1280x1920/a6333cfb4dd6abf04bc8c8edae4a4c9a08ae6022.pnj)
 * (To keep it simple I decided to target this specific URL, as I haven’t quite 
   gotten regex to cooperate with encoded/decoded URLs yet.)
 * … And then I have a PHP snippet that converts it back into the original URL, 
   using Redirection’s redirection_request_url filter.
 *     ```wp-block-code
       add_filter( 'redirection_request_url', function( $url ) {
   
         return 'm0r1bund.local/moribund-art/?muie_current_archive=post_date,Y(2021)';
   
       }, 10, 2 );
       ```
   
 * I hope I understood what you were meaning correctly. Learning coding is very “
   monkey see, monkey do” for me, so to be honest, I am mystified at how this filter
   knows when and when not to fire 😅
    -  This reply was modified 2 years, 8 months ago by [1ore](https://wordpress.org/support/users/1ore/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Media Library Assistant] Cleaning up URL queries in paginated gallery pages](https://wordpress.org/support/topic/cleaning-up-url-queries-in-paginated-gallery-pages/)
 *  Thread Starter [1ore](https://wordpress.org/support/users/1ore/)
 * (@1ore)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/cleaning-up-url-queries-in-paginated-gallery-pages/#post-17031446)
 * Hi there, just wanted to quickly say thank you so much for your help! It really
   means a lot, especially for a wordpress + PHP greenhorn (: this was extremely
   helpful in pointing me in the right direction.
 * Speaking to that, I *think* I have written some PHP that has Redirection and 
   Media Library Assistant talking to each other, but I wanted to spend some more
   time with it, just to be sure that it’s working properly and that I understand
   it. As you can see from the lateness of this reply, time has been on a premium
   lately hahahaha. I’ll be in touch as soon as I can give it another look. Thanks
   again!

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