You unserialize()
it.
Be aware that most WordPress functions will automatically unserialize()
database content before using it. See, for example, the Used By list for maybe_unserialize()
. This is by no mean an exhaustive list, I’m sure.
But if you’re retrieving data directly from the database — because there’s not a WordPress function to achieve what you need to do — you’ll need to unserialize()
the results.
For example:
$x = $wpdb->get_results( '{your SQL query}' );
// $x will be a serialized string
$unserialized_results = unserialize( $x );
The example you provide actually appears to be an array of 8 stdObject
s, with keys from 1
to 8
(unless I’m reading it wrong, which is definitely possible). So that array would be what’s in $unserialized_results
at the end of my code snippet.
Related Posts:
- WordPress Unit Testing – Cannot Create Tables
- Insert data in database using form
- When is it appropriate to create a new table in the WordPress database?
- Has parent field in the table wp_term_taxonomy has term_id or term_taxonomy_id
- BuddyPress: What’s the use of wp_bp_xprofile_data table and how does it get updated? [closed]
- Database with mixed collation (utf8mb4 & utf8_general_ci)
- Moving to another host; which tables to move in a database
- WordPress mysql table double prefixes
- Change WordPress prefix for only one table?
- input data and output table [closed]
- Retrieve data from the database to table such as comments in the admin control panel
- Change options table prefix only
- Query multiple tables at once?
- Why does changing Database Table Prefixes result in loss of content?
- Can I customised default WP table
- Should I use an additional column in the DB?
- Will adding & modifying default WordPress table index break future WordPress update
- What is wrong here? Issue with post_id and meta_value
- How to edit custom table data in frontend
- How to map data on CSV to web pages?
- Create hundreds of users with just ID in phpMyAdmin
- Have WordPress Use a Different Database for users
- phpMyAdmin – Error > Incorrect format parameter?
- Why is my database import losing text widget data?
- Does dbDelta delete columns as well?
- Are There Any Plans for WordPress to Support Databases Other Than MySQL?
- how can get database name in wordpress?
- Long option names fail silently?
- Upload files – total size limit – WordPress/Contact Form 7
- Relationship between performance and database size
- How to use user table of a different database for WordPress users?
- error establishing a database connection
- Get data from database using $WPDB
- Getting all the users who have author privilege
- SQL Query to Update Admin Email
- Transient feeds and caching error
- get_tags() return an empty array after added tags with wp_insert_term()
- Is it a bad idea to write audit/access/transaction log information directly to the filesystem?
- Why do mass updates to post_content shows in front end, but not in edit screen?
- How to disable (get rid of) home page main loop entirely?
- Export / import WordPress database
- Sync user meta data to a second database
- WordPress Multisite – can I somehow merge the tables?
- Is it safe to delete unnecessary user metadata?
- WordPress Relational Database
- WordPress Database Huge wp_usermeta Table
- wp-cli search is returning ‘search’ is not a registered subcommand of ‘db’
- Switching Databases in LocalHost
- How to get membershiplevel from WordPress Database?
- cache specific data?
- wp_insert_post causing There was an error connecting to the database: Access denied for user ‘root’@’localhost’ (using password: NO)
- How to update the values when the featured image has changed?
- Does WordPress $wpdb functions wait when table is locked?
- Duplicating Complete WordPress Install for Development and then Redeployment?
- Importing 10 Years of Media into the WP Database
- I have a 1300 line excel spreadsheet that needs to get into a wordpress site ASAP – Looking for ideas
- 2 WordPress sites with 2 databases but sharing the same users
- How to combine multiple wp_insert_post into one in order to gain better performance
- Insert Query not working in the form
- Two prefixes in database? Which one is valid?
- Enter user registration information in the database
- connecting to DB from custom php file
- Problem in using wpdb
- Create database on installation
- Importer fails to import every post
- Clear Terms from Taxonomy for Specific Post IDs?
- Options on how to Display member specific data from a MS SQL database
- Unkown meta_value in ACF
- Buddypress avatar image in database [closed]
- WordPress security [closed]
- How to split the WordPress database?
- Installing local to live WP into subdirectory
- WordPress SQL – How to Check for Category?
- Getting WordPress to work inside a rails 3 application
- Advantages of dbDelta
- Only allow user to access a link once a year, based on their joining date
- MSQL database wp_postmeta has meta key tve_revision
- Occasional Error Establishing a Database Connection
- Display user data in numbered list
- Removing old_slug and old_date from WordPress Database
- Help with $wpdb on custom code
- “BS_” rows in postmeta table
- Migrating meta_key and meta_value from old theme to new one
- How do I change several broken URLs in a several wordpress databases in the fastest way?
- Optimize WP site for millions of posts
- I Want a More Concice Form of Data than an Array
- Duplicate database to roll back theme & content changes
- WordPress Migration – Issue with admin panel changes
- mySQL database size large, but tables size less
- Error establishing database connection error during first WordPress run
- How much post meta data is too much?
- I have include wp-config, should I add global $wpdb also?
- Localize strings from db
- Can’t Install WordPress (local) Failed to open file wp-includes/wp-db.php
- version control for wordpress? (wordpress folder and database at same time)
- Redirect Issue: WordPress database
- Install WordPress with SQL database
- Creating Job Tickets
- Best db table structure for users with many records
- How to stop WordPress from using utf8mb4_unicode_ci collation