Initially I was using active callback to make my Customizer controls in nature, and was satisfied with the I had with it.
But then I cam across this article about Content-aware previews Customizer.
In that article, the author has used his own plugin to get the page value.
I got everything from JavaScript enqueued for the controls and the previews, what I did not get is what could be the page value for post or page or custom post type here. $page = Login Designer ->get login designer page.
Is anyone doing something similar with Customizer.
Please share how this can be doable with the different page types...
Read more