Original found here: http://codeitdown.com/wordpress-related-posts/ WordPress Most Related Posts in 4 Steps To implement a WordPress Related Posts section that displays the posts with the highest number of common tags follow the next steps: Choose or declare a thumbnail size. You’ll probably want to show thumbnails like the ones above. Those are the posts’ featured images. You’ll Full Article…
wp-config Tweaks
Setting a Default Theme for New WordPress Installations With WP_DEFAULT_THEME define( ‘WP_DEFAULT_THEME’, ‘default-theme-folder-name’ ); Enabling the “Trash” Feature for Media Files With MEDIA_TRASH define( ‘MEDIA_TRASH’, true ); Letting WordPress Skip the wp-content Directory While Updating With CORE_UPGRADE_SKIP_NEW_BUNDLED define( ‘CORE_UPGRADE_SKIP_NEW_BUNDLED’, true ); Allowing Unfiltered WordPress Uploads for Administrators With ALLOW_UNFILTERED_UPLOADS define( ‘ALLOW_UNFILTERED_UPLOADS’, true );
Mac OS X: Print or Save a List of File Names for a Folder/Directory
Taken from: http://www.macobserver.com/tmo/article/mac_os_x_print_or_save_a_list_of_file_names Step 01: Open TextEdit and start a new document which you convert to plain text (which you can toggle under the Format menu or by hitting Shift-Command-T.) Step 02a: The first way to start your list is to select the files you want in it and drag them into that TextEdit document. Step 02b: What Full Article…
Sublime Text – How to’s
Compare the differences between two files? Put the files into a folder and add the folder to the Sublime Text sidebar. You should now be able to select both files in the sidebar (or the folder) and with a right click select the ‘Diff’ option. Select columns? Using the Mouse OS X Left Mouse Button Full Article…
Delete WooCommerce comments type ‘Order Notes’
Run the following query on the database in PHPMyAdmin:
Redirect Old Domain to New Domain via .htaccess
Taken from: http://www.orderofbusiness.net/blog/redirect-old-domain-to-new-domain-via-htaccess/ When you migrate a site from one domain to another, it is very important that you don’t break all the links that you built to your old domain. Proper redirection of all the pages on the old domain to the same location on the new domain will ensure that visitors to the old Full Article…
Mod rewrite information for URL redirects
This information was taken from: http://www.webforgers.net/mod-rewrite/mod-rewrite-syntax.php Mod Rewrite syntax The key to good mod rewritting is patterns. Patterns in your urls are how we are going to distinguish what to rewrite and what not to rewrite. We’ll get to that later, first we’ll need to go over the basics of the mod rewrite syntax. RewriteRules Rewriterules Full Article…
Force www via htaccess using a WordPress plugin (Redirection)
Really all that is necessary is this: Go Settings -> General: WordPress Address (URL) Site Address (URL) And set both of them to www.yoursite.com (instead of yoursite.com), wordpress automagically takes care for setting all the urls to www.yoursite.com and that’s it. If that isn’t enough: Install the Redirection plugin and you can just set the Full Article…