Plugin Directory

Changeset 1587028


Ignore:
Timestamp:
02/02/2017 07:11:05 AM (9 years ago)
Author:
ionutmorariu
Message:

FIX: correct get post meta

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scale-lite-tools/trunk/inc/sl-google-maps/render-cpt.php

    r1586685 r1587028  
    5050  if ($query->have_posts()) : while ($query->have_posts()) : $query->the_post();
    5151    // post meta
    52     $location_address = get_post_meta(get_the_ID(),'gmap_options_location-address',true);
    53     $title = get_post_meta(get_the_ID(),'gmap_options_title',true);
    54     $description = get_post_meta(get_the_ID(),'gmap_options_description',true);
    55     $icon = get_post_meta(get_the_ID(),'gmap_options_icon',true);
     52    $marker_lat = get_post_meta(get_the_ID(),'slt_gmarker_slt_meta-latitude',true);
     53    $marker_lng = get_post_meta(get_the_ID(),'slt_gmarker_slt_meta-longitude',true);
     54    $title = get_post_meta(get_the_ID(),'slt_gmarker_slt_meta-title',true);
     55    $description = get_post_meta(get_the_ID(),'slt_gmarker_slt_meta-description',true);
     56    $icon = get_post_meta(get_the_ID(),'slt_gmarker_slt_meta-icon',true);
    5657
    5758    global $markersArray;
    5859    $markersArray[get_the_ID()] = array(
    59       'location_address'=>$location_address,
     60      'marker_lat'=>$marker_lat,
     61      'marker_lng'=>$marker_lng,
    6062      'title'=>$title,
    6163      'description'=>$description,
Note: See TracChangeset for help on using the changeset viewer.