Context
I am developping a plugin exhibiting geolocated posts on a leaflet map. I wish to add a shortcode parameter to point out a map with solely the present loop posts’ markers. That characteristic could be nice on the search consequence web page for exemple!
Query
Is there a approach to get the present web page WP_Query arguments? I wish to get these arguments to create a brand new WP_Query and add some extra to filter solely geolocated posts.
I do not know if it is doable in any respect, I at all times create new WP_query objects from scratch.
Thanks!