Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter geolocats

    (@geolocats)

    @100plugins appreciate the quick response! I’ll give it a shot. Thank you

    Thread Starter geolocats

    (@geolocats)

    Hey Daniel,

    You’re awesome. Really love the support here and how you take user-feedback/requests to heart.

    Aloha,

    Phung

    Please disregard my previous message.

    After some trial and error, I’ve figured it out! ?? new to PHP so took me awhile. idk why the other function I made spitted out serialized info. But this one doesn’t require me to unserialize it.

    For anyone who visits this post and wonders, here is the function i used to pull the info and store it to apply my own styles and insert them. (added comments for context)

    function output_all_postmeta() {
    	$i = 0;  // setting the counter
    	$data_post = get_post_meta(get_the_ID(), '_oum_location_key', TRUE); // fetching from the _oum_location_key
    		foreach($data_post as $data_key=>$data_value) {  // going through loop of each key:value pair
    		$meta_index[$i] = $data_value; // designating new variable with counter for the loop so each value is assigned to unique meta_index
    			$i++; // counting up each loop
    	}
    	echo '<p>' . $meta_index[1] . '</p>'; // outputting the value i want outside the loop
    }

    Hi,

    I was able to access the image using the key.

    However, i’ve probably spent 8 hours trying every combination i can think of to try to access the values below the _oum_location_key from your site and was not able to do it. I even tried figuring it out by looking at the source code but with no success.

    Even when I was able to generate the data from the meta by pulling the entire batch, this is the format it came out as: https://geolocats.com/oum-location/1651093789/

    either as:
    _:ArrayArray
    _:ArrayArray
    _:ArrayArray
    _:ArrayArray
    _:ArrayArray
    _:ArrayArray

    or

    _oum_location_key:a:8:{s:7:"address";s:54:"Wailea, Maui County, Hawaii, 96753-9527, United States";s:3:"lat";d:20.687174899999998700650394312106072902679443359375;s:3:"lng";d:-156.439041500000001860826159827411174774169921875;s:4:"text";s:63:"Large orange tabby. Stripes and white on chin area. Tipped ear.";s:11:"author_name";s:14:"Kelli Medeiros";s:12:"author_email";s:21:"[email protected]";s:12:"notification";s:2:"on";s:13:"custom_fields";a:3:{i:1650112671253;s:4:"Lost";i:1650112727544;s:7:"1/14/22";i:1650113586301;s:10:"8082505131";}}
    
    _oum_location_image:https://secureservercdn.net/198.71.233.172/7g0.842.myftpupload.com/wp-content/uploads/oum-useruploads/86.jpg
    
    _oum_location_image_thumb:https://secureservercdn.net/198.71.233.172/7g0.842.myftpupload.com/wp-content/uploads/oum-useruploads/86_thumb.jpg
    
    _edit_lock:1651097178:1
    
    _edit_last:1
    
    _oum_location_audio:

    Please help @100plugins

Viewing 4 replies - 1 through 4 (of 4 total)