For sure you can. Below is the easiest method to do that in my opinion. But there are many ways.
You would just need to add those prev/next links to your post using a custom template: https://allurewebsolutions.com/open-wordpress-post-modal-without-plugin#customize
Those links would lead to the URL-based implementation of the popup described on the plugin page.
Amazing – thank you. I had considered this, however the instagram prev/next sit outside the modal – I presume this is just a case of overflowing the WordPress pagination with an absolute position or something.
The prev/next links are working but loading into the single post pages rather than reloading the modal – its late so feel im missing something here?
I’m not, no – how do I implement via this method? I am using…
<div class="alignleft prev-next-post-nav"><?php previous_post_link( '%link', 'Previous' ) ?></div>
<div class="alignright prev-next-post-nav"><?php next_post_link( '%link', 'Next' ) ?></div>
-
This reply was modified 7 years, 4 months ago by
garethyo.
I’ve tried adding ‘modal-link’ class to the divs but does not work
-
This reply was modified 7 years, 4 months ago by
garethyo.
@garethyo You need to make the hrefs of the prev/next links go to a URL similar to the one I provided above.
Apologies to bring this up again — would be amazing get working but struggling to get my head around the links – could you provide an example? My implementation always links to the single post page 🙁
@garethyo I wouldn’t be able to help without looking at your implementation, but that goes outside the purview of free support. If you’d like to hire us for custom implementation, please reach out through our project planner: https://allurewebsolutions.com/project-planner