Cleaning up URL queries in paginated gallery pages
-
First, I want to thank you for providing such thorough and thoughtful documentation for this plugin. I am currently moving my art website to a WordPress site, and, having only worked with html+css to this point, your documentation has been extremely helpful in bridging the gap. I have learned a lot in the process and feel much more confident than when I started : -) thank you so much, people like you are truly the glue keeping society together.
As for why I’m here in the support forum… I’ve been able to figure things out to this point, but I think I’m finally out of my depth. I am putting together a paginated gallery using the core plugin and the MLA UI Elements Example plugin. It sorts galleries by year and pulls links to posts of a custom post type / taxonomy. So far, this has been doing the trick for me:
[muie_archive_list verses='moribund' post_type=works post_status=publish post_mime_type=all post_parent=all archive_type=yearly archive_output="paginate_archive,prev_next" prev_text="?? Forth" next_text="Back ??"] [mla_gallery verses='moribund' post_type=works post_status=publish post_mime_type=all post_parent=all size=medium orderby="date DESC" archive_parameter_name=muie_current_archive]
My challenge has been cleaning up the URLs to each generated page. Currently, they look something like:
blablabla.com/moribund-art/?muie_current_archive=post_date%2CY%282022%29
(“moribund-art” being a page.)
I would like to clean up the queries, if I can. Something like:
blablabla.com/moribund-art/?date=2022
or even
blablabla.com/moribund-art/2022
I have played around with WordPress’s native “wp rewrite” rules and the Redirection plugin, but changing the urls manually breaks the connectivity between the paginated pages. (Which makes sense, but this goes to show my inexperience with these languages.)
After closer reading of the plugin guide, I think(?) it may be possible to do some of this from within the MLA plugin instead, by renaming some parameters or making some substitutions (mla_link_href?) but I can’t quite wrap my head around how to go about this.
If this is indeed possible, any pointers in the right direction or resources for further reading would be tremendously appreciated. No worries if not, I’m sure I can cobble something together with time. I hope that you are having a good start to your week!
- The topic ‘Cleaning up URL queries in paginated gallery pages’ is closed to new replies.