Skip to content

Instantly share code, notes, and snippets.

View wpflippercode's full-sized avatar

Sandeep Kumar wpflippercode

View GitHub Profile
@wpflippercode
wpflippercode / Function.php
Created September 24, 2016 12:49 — forked from fcgist/Function.php
Multiple Google Map Post markers on single page using ACF plugin
add_filter("wpgmp_markers","add_markers",1,2);
function add_markers($markers,$map_id)
{
global $post;
//echo '<pre>'.print_r($markers).'</pre>';
$new_markers = array();
$the_query_map = new WP_Query( array( 'posts_per_page' => -1 ) );
if($the_query_map->have_posts()) :