https://github.com/deliciousmedia/dm-wordpress-layout
Starting point for all our WordPress projects.
https://github.com/deliciousmedia/dm-wordpress-layout
php wordpress wordpress-layout wordpress-workflow
Last synced: 2 months ago
JSON representation
Starting point for all our WordPress projects.
- Host: GitHub
- URL: https://github.com/deliciousmedia/dm-wordpress-layout
- Owner: DeliciousMedia
- Created: 2015-04-05T13:17:53.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2023-09-23T08:48:23.000Z (over 2 years ago)
- Last Synced: 2024-12-16T21:02:22.236Z (over 1 year ago)
- Topics: php, wordpress, wordpress-layout, wordpress-workflow
- Language: PHP
- Homepage: https://www.deliciousmedia.co.uk/
- Size: 43 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DM WordPress Layout
This is the WordPress layout we use at [Delicious Media](https://www.deliciousmedia.co.uk/) as a starting point for most of our projects.
It has been tested with WordPress 5.0+ and is written for PHP 7.x.
## Overview
- `wp-config.php` is in the root directory along with `local-config.php` file which holds environmet specific information such as database credentials and salts.
- WordPress iteself is installed in `/wp/` for neatness.
- The WordPress content folder is `/content/` (rather than wp-content) the themes, plugins and mu-plugins folder live here.
- The WordPress uploads folder is stored in `/shared/content/uploads/` and symlinked from `/content/uploads/`. Similarly a static folder in `/shared/content/static/` is symlinked to from `/static/`. This allows easy backups/synchronisation between multiple servers.
## Other packages
A composer.json file in the root will include the following:
- [DM-MuLoader](https://github.com/DeliciousMedia/DM-MuLoader) - Automagically includes plugins from subdirectories under the mu-plugins folder.
- [Extended CPTs](https://github.com/johnbillion/extended-cpts) - Configure custom post types & taxonomies with less code.
- [DM Base](https://github.com/DeliciousMedia/DM-Base) - Customisations to WP to suit our projects.
- [Mailgun](https://en-gb.wordpress.org/plugins/mailgun/) - A plugin to allow sending email via the Mailgun transactional SMTP service.
- [ACF Pro](https://www.advancedcustomfields.com/pro/) - You'll need to add a .env file with a licence key; note the version number needs to be incremented in composer.json manually.
If you are going to use Composer to bring in the extra components, you'll also need [composer-wp](https://github.com/balbuf/composer-wp) available - you can install it with `composer global require balbuf/composer-wp`.
## Installation
### Via our VVV provisioning script
The best way to setup a project with this layout is to use [VVV our provisioning script](https://github.com/DeliciousMedia/DM-VVV2-Provision-Basic) which will setup a new [VVV](https://varyingvagrantvagrants.org/) site using this WordPress layout along with our [starter theme](https://github.com/DeliciousMedia/DM-Base-Theme) and various other customisations.
### Manually
You can set one up manually by cloning this repository, copying `local-config-sample.php` to `local-config.php` and editing the relevant settings there. You'll also need to create the "shared" folders with `mkdir -p shared/content/uploads && mkdir -p shared/content/static` and install the WordPress core files with `wp core download` (to avoid leaving any redundant code on your site, also remove the /wp/wp-content/ folder) then run `composer install`.
---
Built by the team at [Delicious Media](https://www.deliciousmedia.co.uk/), a specialist WordPress development agency based in Sheffield, UK.