Home › Forums › MapPress Support › Custom Post Type Mashups (using toolset plugin) › Reply To: Custom Post Type Mashups (using toolset plugin)
June 3, 2013 at 4:56 am
#12745
FYI… I got an answer from support on the Types and Views plugin and it worked perfectly:
I created a custom shortcode to map the Views query to MapPress. The code is following, I added it to functions.php in your theme:
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);
}
Then in your View you have to the shortcode like this [wpv-post-mashup width=”98%” height=”300″ adaptive=”true”]
Please let me know if you are satisfied with my answer and if I can help you with any other questions you might have.
Regards,
Caridad