2021-04-21, 20:33:06
I'm sure this is covered somewhere in here, but I haven't been able to track it down...
I want to make a single page to display any gallery, and just pass it the name of the gallery in the URL. I've made a page template for this in my theme, and an empty page using it. The template picks up the parameter as $_REQUEST['galname'] and that part works - parameter does get to the page. But the gallery generation doesn't work - I just see the string which is meant to trigger it. I'm guessing this is because this substitution is happening too late in the process of building the page. So, is this even possible? Any pointers welcome if it is.
I want to make a single page to display any gallery, and just pass it the name of the gallery in the URL. I've made a page template for this in my theme, and an empty page using it. The template picks up the parameter as $_REQUEST['galname'] and that part works - parameter does get to the page. But the gallery generation doesn't work - I just see the string which is meant to trigger it. I'm guessing this is because this substitution is happening too late in the process of building the page. So, is this even possible? Any pointers welcome if it is.