- Locating our code is easy
 - Identify code at a glance
 - Flat structure as long as we can
 - Try to stay DRY (Don’t Repeat Yourself) or T-DRY
 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | On Mac OS X (Leopard+), the Apache HTTP Server runs under the user account, _www which belongs to the group _www. To allow WordPress to configure wp-config.php during installation, update files during upgrades, and update the .htaccess file for pretty permalinks, give the server write permission on the files. | |
| One way to do this is to change the owner of the wordpress directory and its contents to _www. Keep the group as staff, a group to which your user account belongs and give write permissions to the group. | |
| $ cd /<wherever>/Sites/<thesite> | |
| $ sudo chown -R _www wordpress | |
| $ sudo chmod -R g+w wordpress | |
| This way, the WordPress directories have a permission level of 775 and files have a permission level of 664. No file nor directory is world-writeable. | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /* Smartphones (portrait and landscape) ----------- */ | |
| @media only screen | |
| and (min-device-width : 320px) | |
| and (max-device-width : 480px) { | |
| /* Styles */ | |
| } | |
| /* Smartphones (landscape) ----------- */ | |
| @media only screen | |
| and (min-width : 321px) { | 
- XAMPP for Windows: https://www.apachefriends.org/download.html
 - The VC14 builds require to have the Visual C++ Redistributable for Visual Studio 2015 x86 or x64 installed
 - The VC15 builds require to have the Visual C++ Redistributable for Visual Studio 2017 x64 or x86 installed
 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | SELECT | |
| wp_posts.post_title AS Product, | |
| wp_postmeta1.meta_value AS SKU, | |
| wp_postmeta2.meta_value AS Price, | |
| GROUP_CONCAT( wp_terms.name ORDER BY wp_terms.name SEPARATOR ', ' ) AS ProductCategories | |
| FROM wp_posts | |
| LEFT JOIN wp_postmeta wp_postmeta1 | |
| ON wp_postmeta1.post_id = wp_posts.ID | |
| AND wp_postmeta1.meta_key = '_sku' | |
| LEFT JOIN wp_postmeta wp_postmeta2 | 
NewerOlder