Wordpress Notes
From Federal Burro of Information
blank pages is the theme's way of telling you "something broke dude"
quick troubleshooting - `wp theme list` then `wp theme activate twentyseventeen`
wp-cli is your friend use it.
composer is your friend , use it.
sample composer.json:
{ "name": "company/project", "description": "Company Website", "type": "project", "repositories": [ { "type": "composer", "url": "https://wpackagist.org" } ], "require": { "johnpbloch/wordpress": "4.7.2", "philippbaschke/acf-pro-installer": "^1.0", "humanmade/S3-Uploads": "1.1.0", "psy/psysh" : "~0.6", "symfony/process" : "3.2", "wpackagist-plugin/ajax-load-more": "2.13.1", "wpackagist-plugin/custom-post-type-ui": "1.5.1", "wpackagist-plugin/megamenu": "2.3.4", "wpackagist-plugin/timber-library": "1.2.1", "wpackagist-plugin/wordfence": "6.3.0", "wpackagist-plugin/wordpress-seo": "4.1" }, "extra": { "wordpress-install-dir": "public_html/wp", "installer-paths": { "public_html/wp/wp-content/plugins/{$name}": [ "type:wordpress-plugin" ] } } }
sample file layout:
├── composer.json ├── composer.lock ├── public_html │ ├── report │ ├── wp │ │ ├── composer.json │ │ ├── db │ │ ├── index.php │ │ ├── license.txt │ │ ├── readme.html │ │ ├── wp-activate.php │ │ ├── wp-admin │ │ ├── wp-blog-header.php │ │ ├── wp-comments-post.php │ │ ├── wp-config.php │ │ ├── wp-config-sample.php │ │ ├── wp-content │ │ ├── wp-cron.php │ │ ├── wp-includes │ │ ├── wp-links-opml.php │ │ ├── wp-load.php │ │ ├── wp-login.php │ │ ├── wp-mail.php │ │ ├── wp-settings.php │ │ ├── wp-signup.php │ │ ├── wp-trackback.php │ │ └── xmlrpc.php └── vendor ├── autoload.php ├── bin │ ├── php-parse -> ../nikic/php-parser/bin/php-parse │ ├── psysh -> ../psy/psysh/bin/psysh │ └── wp -> /var/www/site.ca-v0.0.1/vendor/wp-cli/wp-cli ├── composer │ ├── autoload_classmap.php │ ├── autoload_files.php │ ├── autoload_namespaces.php │ ├── autoload_psr4.php │ ├── autoload_real.php │ ├── ClassLoader.php │ ├── installed.json │ ├── installers │ └── LICENSE ├── dnoegel │ └── php-xdg-base-dir ├── jakub-onderka │ ├── php-console-color │ └── php-console-highlighter ├── johnpbloch │ ├── wordpress │ └── wordpress-core-installer ├── nikic │ └── php-parser ├── philippbaschke │ └── acf-pro-installer ├── psr │ └── log ├── psy │ └── psysh ├── symfony │ ├── console │ ├── debug │ ├── polyfill-mbstring │ ├── process │ └── var-dumper ├── vlucas │ └── phpdotenv └── wp-cli └── wp-cli