get specific values from WordPress meta_value
You should pretty much never need to use $wpdb to grab data. There are helper functions built into WordPress that will do what you need. In this case, use get_post_meta(). Having used https://www.unserialize.com/ to unserialize your data, it looks like the item list in your question is in $meta[‘toys_item’][‘toys_item_ranger’]. I’ll use that in my code … Read more