Taken from WP Stackexchange Don’t try to Bulk delete WordPress posts with SQL. There is post information is multiple tables. You will end up with orphan data scattered throughout the database. While it is possible to write the JOINs you’d need to delete everything, the SQL could be complex. Create a simple Loop and use the Full Article…
Search the Wiki
How To Remove Error Notices Using WordPress’ WP_DEBUG
As seen here: http://wycks.wordpress.com/2013/12/05/how-to-remove-error-notices-using-wordpresss-wp_debug/ In your `wp-content` folder create a new folder called `mu-plugins` and in that folder create a php file with the error level you want, for example: If you are using PHP 5.5 +, you will get deprecated noticed for WordPress’s mysql_* functions, you can turn them off using: Or for something really Full Article…
How to Force Eject a Stuck CD or DVD in OS X
Taken from here: http://guides.macrumors.com/Force_Eject_a_Stuck_CD_or_DVD There are a few different options on the page listed above. What worked for me was this: Open ‘Disk Utility’ and choose the disc you wish to eject in the left-hand pane, then click on the Eject button.
Enqueue/Include neutral urls for http and/or https in WordPress
Taken from here: http://wordpress.stackexchange.com/a/81897/13712 URLs must have a https or http protocol for WordPress to enqueue them. FIf possible you should use get_template_directory_uri() (for parent themes) or get_stylesheet_directory_uri() (for child themes) as both of these handle SSL if necedssary. Here’s an example: If you can’t enqueue your own local script/s and have to enqueue from an Full Article…
OS X – applescript to move all windows onto the screen
When switching from multiple monitors to a single monitor, some windows may be inaccessible due to being off the screen. They can be brought back by knowing the keyboard shortcuts for moving windows, but that’s a pain. Here’s an applescript that will bring them all back onto the visible screen:
How to change your WordPress.org password
This appeared to not be possible for a while, hence creating this note on where it is hidden away once you are logged into WordPress.org. After some more looking, and a bit of searching, I found that the View your profile link can be found specifically on the WordPress.org Forums. Notice that the View your profile is at the top right Full Article…
WooCommerce Breadcrumbs – Add categories
Customers generally prefer product breadcrumbs that show the steps it took to get to the product they are viewing, so they can backtrack easily. Breadcrumbs, if you aren’t sure, are the row of links above the main content, below the header, that look like: Home > Catalog > Clothes > Men’s > Shirts > Blue Full Article…
Fix: QNAP NAS: File System not clean. Examination failed (Cannot unmount disk)
If you receive the following error message from your QNAP NAS: The file system is not clean. It is suggested that you run “check disk” and a disk check is failed with that message: [Mirror Disk Volume: Drive 2 3 4 1] Examination failed (Cannot unmount disk). ssh your qnap and do the following: If Full Article…
How to fix ‘Notice: wpdb::escape is deprecated since version 3.6!’
The Cause: The error occurs because a function used to “escape” strings before being stored in the database has been deprecated. Escaping is the process of removing characters that can lead to SQL injection and XSS. The existing escape() function was deprecated in WordPress v3.6 RC2 and missed the previous released, and so may have Full Article…
Ordered List CSS Styles
Original here: http://codeitdown.com/ordered-list-css-styles/ Styling ordered list numbers with CSS is not as simple as one might think because there is no CSS selector to target list numbers. Styling them is only possible with a simple CSS3 technique that uses a counter to replace the default numbers. Styled numbers will only be visible in CSS3 browsers , Full Article…