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 stdObjects, 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
- Database table prefix different between wp-config.php and in database
- Count views without get_post_meta
- Example of a strong and weak entity types
- $wpdb won’t insert NULL into table column
- The MySQL alternatives: Do Percona Server and MariaDB work well with WordPress, and do they make WordPress go better?
- MariaDB as a backend database
- What is the purpose of the option name hack_file in the options table?
- WordPress database error with latest WP – “WP_termmeta doesn’t exist”
- WordPress Connection Pooling
- How to reset the post ID increment
- What is the fastest way to generate a unique id number when registering a user
- How best to inject ads between posts in the loop?
- Cloning and syncing a WordPress website
- How to correctly add a table to the WordPress MySQL database
- Help running a MySQL query to update all wp_#_options tables in a Multisite install
- How to verify password outside WordPress?
- Is it safe to convert tables from MyISAM to InnoDB?
- How do I properly update the WordPress database password?
- wpdb_prepare with multiple or condition
- $wpdb->insert is not working
- WordPress Install and Database on separate hosting?
- Moving a site from a temporary domain to the live domain [duplicate]
- Error establishing a database connection on Installation
- What is this in my tables
- WP get stuck with a query on MySQL when the site is resumed
- Routine to convert custom post meta from old to new value
- Trying to change database tables storage engine to innodb gives error “invalid default value for ‘post_date'”
- database connection [closed]
- sanitize POST arrays
- Able to use all admin pages but in the frontend there is a “Error establishing a database connection”-Error
- Need to store custom user information (many-many relationsips), preferably not as user meta
- charset problem with new custom table
- Undefined Variable: mysqli error when connecting to database
- Localhost to Staging to Development Dynamic WP-CONFIG
- Migrating from PDO using SQLite to clean new install using MySQL
- Change WordPress URL in sql file via Terminal
- $wpdb->insert Giving duplicates
- Which data is written and stored in the database when read-only (non-posting, non-commenting) users visit the site?
- Where is phpMyAdmin inside WordPress?
- What can I do when an outside party hacks into my weblog and changes my display name?
- How to delete database without using any plugin?
- Cannot restore wordpress database from sql dump [closed]
- WooCommerce: remove sample & dummy data
- Is database deleted on clicking “reinstall” button in WordPress updates?
- Is my way to change WordPress server is correct?
- WordPress database products structure
- I cannot find the difference between these wp_capabilities values in wp_usermeta
- Files on Localhost, Database on Server
- Is there any way to monitor a MySQL db and check what has changed?
- DB prefix not updating
- Any other way of storing plugin admin data setting
- Will memcached improve performance with WP Super Cache already running?
- I want to schedule email (date, time is in database->table) wp_schedule_event() not working
- Restore of database doesn’t show content
- Why theme settings lost when I installed https
- WordPress site migration – locked out of admin area
- WordPress users table missing indexes
- unable to use my wordpress site after moving
- How to add download link from database on custom page template?
- How can i syn wordpress user table with a stand-alone php script?
- insert data from a form:: Warning Empty query mysqli::query()
- Db connection problem on Azure Since database moved on CLEARDB
- How to get specific table by current user login
- After Migration From dev, Only my Links to the Homepage Still Redirect to dev
- Mysql Queries per Visit – Crazy High
- Media Library doesn’t allow uploads? Upload Directory
- using same mysql user with many databases
- Manage 3 Layers Of Information (CTP – Posts – Then Maybe Metadata?)
- Get id from database
- Insert double entry in DB
- How to write to wp-users table
- Database custom table issues – incorrect result displayed
- What is good W3 total database caching option? [closed]
- Change taxonomy slug in database
- Migrated to Namecheap, now Trouble with Database & wp-config [closed]
- Multiple Address In WP-Option Value
- WordPress database error Unknown column
- Custom wordpress SQL statement for a website