portsmouthpl

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: "Directions To/From" Not Displaying #14240
    portsmouthpl
    Participant

    Got it.

    As soon as I posted it, I noticed the ‘directions’ => ‘none’ 🙁

    Thanks for your help

    in reply to: "Directions To/From" Not Displaying #14239
    portsmouthpl
    Participant

    The setting seems to be saved. I wouldn’t know what to check other than the seeing the radio buttons moving upon saving..

    I followed this guide to setup my display: http://formidablepro.com/how-to-create-maps-from-form-entries/

    The shortcode I am using to display is: [form_to_mappress address1=”[1109], [1110], [1111] [1112]”]

    This is the custom function used to build the shortcode:

    add_shortcode('form_to_mappress', 'form_to_mappress');
    function form_to_mappress($atts) {
         extract(shortcode_atts(array(
    	      'width' => 600, 'title' => '', 'body' => '',
                  'address1' => '', 'address2' => '', 'directions' => 'none'
         ), $atts));
    
         $mymap = new Mappress_Map(array("width" => $width));
         $mypoi_1 = new Mappress_Poi(array("title" => $title, "body" => $body, "address" => $address1));
         $mypoi_1->geocode();
         $mymap->pois = array($mypoi_1);
         if($address2 != ''){
           $mypoi_2 = new Mappress_Poi(array("address" => $address2));
           $mypoi_2->geocode();
           $mymap->pois = $mypoi_2;
         }
         return $mymap->display(array('directions' => $directions));
    }
    in reply to: "Directions To/From" Not Displaying #14235
    portsmouthpl
    Participant

    I tried setting the directions type to ‘inline’ and ‘Google’ and it still isn’t showing up.

    You can view a sample here: http://www.yourppl.org/uncategorized/government-entries-test/?entry=12214

Viewing 3 posts - 1 through 3 (of 3 total)