1ore
Forum Replies Created
-
Forum: Plugins
In reply to: [Media Library Assistant] Cleaning up URL queries in paginated gallery pagesThank 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
In reply to: [Media Library Assistant] Cleaning up URL queries in paginated gallery pagesSo 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:
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?
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
In reply to: [Media Library Assistant] Cleaning up URL queries in paginated gallery pagesI 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
In reply to: [Media Library Assistant] Cleaning up URL queries in paginated gallery pagesOK, 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/(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.
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.
Forum: Plugins
In reply to: [Media Library Assistant] Cleaning up URL queries in paginated gallery pagesHi 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!