I’m trying to assign a php file to a specfic page?
I have modals stored in different files and want have them load in when their assigned page is called. These pages are using the same theme, “Portfolio”.
If I do something like:
for each file in my Portfolio template, each page will still load all of the modals that are assigned, not just the one that I’m try to assign to that page.
Is there a way to try this in functions.php?
Read more here:: loading a php file to a specific page id