Reply To: Changed API > Need Mashup based on custom fields

Home Forums MapPress Support Changed API > Need Mashup based on custom fields Reply To: Changed API > Need Mashup based on custom fields

#19593
Chris
Keymaster

Hi,

That JSON doesn’t look valid.  MapPress uses the WordPress wp_query module, so those are the parameters that are supported.

Instead of entering raw JSON, try just using the post type using the checkboxes for the mashup block.  That should give something like this (for a ‘location’ custom post type):

{
"post_type": [
"location"
]
}

It’s not possible to generate a mashup directly from custom fields.  You have to first create a map for each post, based on the custom fields.  Once the individual post maps exist, you can create a mashup combining all of the maps together.

https://mappresspro.com/mappress-documentation/#toc-generating-maps-from-custom-fields

I was able to reproduce the crash when displaying the shortcode, which occurs because the JSON is invalid, and it’ll be fixed ASAP in version 2.83.8.  Thanks for reporting it!