Backend option to include a javascript file on specific pages?
The best way to do this would be to add a Meta Box to the Add / Edit Page dashboard. Then, when enqueueing scripts, you can check the metadata for that post, and if it’s set, enqueue the script. NOTE: there’s a lot of moving pieces here. I’ll try to break it down into digestable … Read more