Remove empty rows from the database

I’d imagine those rows with empty content are more often then not revisions rather than trashed posts. To make sure you don’t delete stuff you want to keep I suggest you add the post_status to your SQL, using trash and auto-draft as value – the latter are the revisions. Btw the table column is called … Read more

Is there a page length limit?

The post content field is MySQL type longtext, which has a limit of 4 gigabytes. What you may be encountering is an issue with the TinyMCE editor. Content is processed and validated in the browser with JavaScript. If that’s the case, I doubt you will improve your situation by using Drupal, since you will be … Read more

Posts modified in the last 48 hours

You can do it easily with WP_Query: $args = array( ‘date_query’ => array( ‘relation’ => ‘OR’, array( ‘column’ => ‘post_date’, ‘after’ => ‘-2 days’ ), array( ‘column’ => ‘post_modified’, ‘after’ => ‘-2 days’ ) ) ); $query = new WP_Query( $args ); More information about date_query parameter of WP_Query. If, for some reason, you still … Read more

Can’t run database query

Here issue with the column name. You are using column key in the query which is the default keyword/index in mysql. For resolving this kind of issue just use the “Grave accent(`)’ symbol in the query for the column name, No need to change the column name. So in your case the right query is … Read more

WooCommerce: remove sample & dummy data

Even though it’s dummy data, there is nothing special about it compared to actual data other than the fact that it’s all made up for testing purposes. I assume that you only imported dummy data for testing and not actual data. If so, I’d recommend that you manually delete the dummy data through WordPress.

Strange characters added to the database

The strange characters you are referring to are part of the table prefix. This is configured with the variable $table_prefix in the file wp-config.php. $table_prefix = ‘wp_’; When migrating a WordPress installation and setting up a new wp-config.php file you have to make sure, the prefix stays exactly the same as in the former config … Read more