map marker sort order
-
Greetings,
My global map is sorting map markers alphabetically by post title, I would like by post_date or geo_date.I have tried [geo_mashup_map sort=”geo_date”] with no luck.
I also have [geo_mashup_visible_posts_list] on the same page and have tried [geo_mashup_visible_posts_list sort=”geo_date”] with no luck either.
The post marker I need on top has the newest geo_date and post_date but it is the oldest post_id and in the middle alphabetically.
I found a possible answer on your support post https://wordpress.org/support/topic/costum-fields-to-select-posts-for-map
Would this work?
$custom_query = new WP_Query( array(
'post_type' => 'post',
'orderby' => 'post_date',
'order' => 'DESC'
) );echo GeoMashup::map( array(
'map_content' => $custom_query,
) );I would prefer a shortcode way. I don’t want to enable php in posts.
Thank you for this excellent plugin.
Cheerz
The topic ‘map marker sort order’ is closed to new replies.