Title: Recommended WordPress Structure
Last modified: August 21, 2016

---

# Recommended WordPress Structure

 *  Resolved [Lucas Stark](https://wordpress.org/support/users/lucasstark/)
 * (@lucasstark)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/recommended-wordpress-structure/)
 * Do you recommend using a structure like [https://github.com/markjaquith/WordPress-Skeleton](https://github.com/markjaquith/WordPress-Skeleton),
   a different setup, or does it not matter?
 * [https://wordpress.org/plugins/revisr/](https://wordpress.org/plugins/revisr/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [headonfire](https://wordpress.org/support/users/headonfire/)
 * (@headonfire)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/recommended-wordpress-structure/#post-5040885)
 * Seems it’s not working with custom structure. I have similar to Mark’s setup,
   here’s my root folder:
 * **/.git** (Git folder, obviously)
    **/_** (Git ignored folder with Sublime Text
   project files etc) **/content** (copy of wp-content – languages, themes, plugins,
   uploads, backups) **/core** (original wordpress folder) **.gitignore** **index.
   php** **wp-config.php** …
 * Plugin does NOT report any errors while commiting, it produces empty .sql dump(
   0 bytes), says that commit was successful but it’s not present it my local Git
   repo or remote (BitBucket.org).
 * Everything was tested under Windows 7, Nginx 1.7, PHP 5.5 with OPcache, MariaDB
   5.5, Memcached 1.4 (with php5-memcached extension). Exec and Passthru enabled.
   WordPress 3.9.1. Git 1.8.3.msysgit.0
 *  Plugin Author [Expanded Fronts](https://wordpress.org/support/users/expandedfronts/)
 * (@expandedfronts)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/recommended-wordpress-structure/#post-5041054)
 * Hello,
 * Revisr was designed to work with the WordPress installation being in the root
   of the git repository. Any structure changes inside of that shouldn’t affect 
   that, but in this case it looks like the WordPress installation is in a “core”
   subdirectory.
 * If it is not compatible with your structure, you will be notified with an error
   on the Revisr dashboard.
 * Also, we just pushed out a release that should address most errors on Windows
   installations. Please let me know if you have any further questions.
 * Thank you.
 *  [Henry Scullion](https://wordpress.org/support/users/henscu/)
 * (@henscu)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/recommended-wordpress-structure/#post-5041115)
 * Lucas, Ihor,
 * Did you figure out a way to get this to work with WordPress in a subdirectory?
   ie [https://github.com/markjaquith/WordPress-Skeleton](https://github.com/markjaquith/WordPress-Skeleton)?
 * I’ve got the same setup and it would be great to be able to use this plugin.
 * Henry
 *  [Carsten Bach](https://wordpress.org/support/users/carstenbach/)
 * (@carstenbach)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/recommended-wordpress-structure/#post-5041133)
 * Just to follow up on this track.
 * I testet this today with no luck.
    My folder-structure was like the following,
   similar to [Skeleton](https://github.com/markjaquith/WordPress-Skeleton), but
   originally from [wordpress-capistrano](https://github.com/herrkris/wordpress-capistrano).
 *     ```
       [docroot]
           │
           ├───.git
           │
           ├───config
           │
           ├───content
           │   ├───languages
           │   ├───logs
           │   ├───mu-plugins
           │   ├───plugins
           │   ├───themes
           │   └───uploads
           │
           ├───lib
           │   ├───capistrano
           │   ├───grunt
           │   └───npm_modules
           │
           └───wp
       ```
   
 * Revisr detected the `WordPress submodule` in folder `/wp` as my repo.
    Unfortunately
   there was no [notification](https://wordpress.org/support/topic/recommended-wordpress-structure?replies=4#post-5736524)
   like mentioned above.
 * Would love to see revisr handle this in future!
 *  Plugin Author [Expanded Fronts](https://wordpress.org/support/users/expandedfronts/)
 * (@expandedfronts)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/recommended-wordpress-structure/#post-5041136)
 * Hi All,
 * Just to follow up on this, the latest release allows you to define the path to
   the repo that Revisr should use. It’s actually very similar to setting the `ABSPATH`
   and can be done with the following:
 * `define( 'REVISR_GIT_PATH', dirname( __FILE__ ) );`
 * Of course the `dirname( __FILE__ )` can be changed or modified to better suite
   your environment. This should be placed in ‘wp-config.php’ or ‘local-config.php’
   if you have one.
 * Revisr still has no official submodule support (yet), so if you have WP core 
   files stored away as a submodule, you’ll need to update that manually or temporarily
   change the REVISR_GIT_PATH constant to the path of the submodule, commit the 
   changes in Revisr, then switch back to to the path of the main repo (somewhat
   of a pain right now, but workable and being improved on).
 * If anyone has any suggestions or feedback in this area, I’d love to hear them!
 *  Plugin Author [Expanded Fronts](https://wordpress.org/support/users/expandedfronts/)
 * (@expandedfronts)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/recommended-wordpress-structure/#post-5041137)
 * Sorry, typo above. Should be:
 * define( ‘REVISR_GIT_DIR’, dirname( __FILE__ ) );

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Recommended WordPress Structure’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/revisr_ecf0f1.svg)
 * [Revisr](https://wordpress.org/plugins/revisr/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/revisr/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/revisr/)
 * [Active Topics](https://wordpress.org/support/plugin/revisr/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/revisr/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/revisr/reviews/)

 * 6 replies
 * 5 participants
 * Last reply from: [Expanded Fronts](https://wordpress.org/support/users/expandedfronts/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/recommended-wordpress-structure/#post-5041137)
 * Status: resolved