generate PDF from member information
generate PDF from member information
generate PDF from member information
pre_get_posts causings DB error when using ( ‘posts_per_page’, -1)?
If you check the wp-config.php you can identify which database is being used: // ** MySQL settings – You can get this info from your web host ** // /** The name of the database for WordPress */ define(‘DB_NAME’, ‘this_here’); Then, use phpMyAdmin or Adminer to export the data into an .sql and move it … Read more
I’ve decided to use plain Key according to @TomJNowell ‘s comments. If I would like to search a key in serialized data, I would get those serialized array from DB and use maybe_unserialize() in PHP OR use WP_User_Query in PHP. Thank you @TomJNowell
Alright this worked for me: First run the bellow script to generate the file locations of all files used for draft posts. SELECT voybp_posts.guid FROM voybp_posts WHERE voybp_posts.ID IN (SELECT voybp_postmeta.meta_value FROM voybp_postmeta WHERE voybp_postmeta.post_id IN ( SELECT voybp_posts.ID FROM voybp_posts WHERE voybp_posts.post_status=”draft”) AND voybp_postmeta.meta_key=”_thumbnail_id”) Export this as a CSV file and save it to … Read more
It seems no connection technically but you might break the serialized data in the database. Can you please try again with the Better Search Replace plugin https://wordpress.org/plugins/better-search-replace/ and see if it still breaks? If it’s not then you are breaking the serialize data.
To check if a string from database is like a:2:{i:3;a:4:{s:5:”title”;s:0:””;s:4:”text”;s:503:”…}}, you can use the function is_serialized() To get the data as php array : if(is_serialized($data_as_string)){ $data_as_array = unserialize( $data_as_string); }
Check that you are actually using the database by doing the following: 1 – go to cpanel, file manager, public_html, open the wp_config.php file 2 – check db creds and make sure it is actually the correct db. Everything must be exact. (IP/localhost, dbname, user, etc.) 3 – check the $table_prefix – make sure the … Read more
Ended up re-creating the db accounts and it worked afterwards.
You’d have to look more closely at how the old theme displays the postmeta. At this point, you have a few options: Create a child theme for your new theme, and in its PHP file to display single posts, set the child theme up to display the postmeta just like your old theme did. (You … Read more