public function get_serialized_loaded_meta( $key )
This method allows you to quickly retrieve and unserialize loaded serialized post meta loaded using the load_meta() method, which must first be called for this method to function correctly. If the loaded meta key doesn't exist, or is empty, the method returns false. To retrieve loaded post meta that does not need to be unserialized, use the get_loaded_meta() method.
(string) (required) The meta key to pull from the $meta property and unserialize (where all meta for the current post is stored)
For this example, let's imagine that we have a custom post type called
locations. For each location a content editor adds, we've used CMB2 to create a filelist field (stored as serialized post meta with the key
_method_location_photos) that allows content editors to add multiple photos for that location. In the example below, we'll build a layout component that loops through each location, checks to see if photos have been added for that location, and displays them if available: