I'm trying to move to using the WordPress customizer more. I need to find a way to get the ID of the page the user is viewing in the window. I was wondering is this is possible in the customizer?
Another question is, is it possible to use a loop to create a setting for each individual page?
I'm trying to let the user upload an image to the customizer to use as a banner. So I want to be able to get the page id to uniquely create a setting for each page then in my theme grab the image if it exists. I know the customizer has gotten more advanced but I've done a bit of digging and cant find anything.