Also just to make sure I cover this, I double checked and the display in the shortcode is set to the the custom php template that I wanted it set to. And still no dice!
Shortcode looks like this:
[insert page='concert-photography' display='template-pages/single-gallery.php']
Been banging my head against the wall on this for an hour and a half. Restarted my computer, restarted MAMP, recreated a posts etc. Nada.
I did finally get the page which was not even displaying the link to work though. The gallery name was Illustration, and so was the name of the post it was being inserted into, so the shortcode for insert post didn’t distinguish between the two. Just renamed the gallery to illustrations, and now it inserts fine just like all the rest. Well fine except for the fact that it’s not actually displaying the post, it’s just displaying a link to the post. Which is weird because I most def am using the custom php template etc.
Also renamed the template to insert-post.php to make sure that it wasn’t having some backend interferences from the single naming convention for posts etc. Also removed the tags at the top of the test single-gallery.php in the root of the theme in order to make sure that wasn’t interfering either. Also renamed it null_single-gallery.php except for when I needed to test to see that the html css etc was all working correctly. When I enable that single post, and open up one of the galleries as a page, it looks good. No problems. Turned it off now though to make sure it wasn’t messing anything up, and still ain’t working 🙁
Any help with this would be greatly appreciated. I’m trying to look around as much as I can. I have a feeling there’s something wrong with the use of the custom template?
Also you mentioned in another post that the locations available for custom template files was made more strict. Where should I be putting my custom template files?
I think it’s probably related to the more strict custom template code. Can you help me diagnose the specific error by inserting the logging statements described in this other post, and then grab the relevant info from the logs?
https://ww.wp.xz.cn/support/topic/not-loading-template-after-update/#post-9564272
You’ll notice in that case it seems to be an issue with directory separators (double-backslashes vs. forward slash), so I just need to get details on all the different installation environments to be able to fix up that code.
Thanks, and sorry for your frustrations! Hopefully we can get this resolved soon.
A fix has been released in version 3.2.6, please update and let me know if that solved the problem.
https://github.com/uhm-coe/insert-pages/commit/080f190658face8859896782b086634baffd50f8
Hey Paul, thanks that worked! And also the issue makes sense from reading your notes on the github page, since the environment I was was migrating from was a Linux machine, and now I’m working on a Windows machine. Thanks!
Great, thanks for following up!