Reply To: Parametric Search Results and Mashups

Home Forums MapPress Support Parametric Search Results and Mashups Reply To: Parametric Search Results and Mashups

#16509
joew
Participant

Sorry to ask before doing a bit more research. Apparently, by creating a shortcode in my functions.php file, I was able to get this to work. Inserted this code: `add_shortcode(‘wpv-post-mashup’, ‘views_mashup’);
function views_mashup($atts) {
global $WP_Views, $mappress;
$atts[‘query’] = $WP_Views->post_query->query_vars;
return $mappress->shortcode_mashup($atts);
}`
into my functions.php file and inserted this shortcode: [wpv-post-mashup width="98%" height="300" adaptive="true"] into my parametric search view and hooray! It works. Haven’t checked everything, but so far so good. Posting in case someone does a search to find a solution.