Support custom wp-content directory
-
Hi,
I’m currently unable to use the blue “Insert shortcodes created using Shortcoder” button in the TinyMCE Visual editor b/c I’m using a custom wp-content directory for my WordPress installation, meaning that wp-load.php is not 3 directories up.
PHP Error:
Warning: require_once(../../../wp-load.php): failed to open stream: No such file or directory in /Users/micahjm/Sites/gc.edu/wp-content/plugins/shortcoder/sc-insert.php on line 12Using a custom wp-content directory is becoming a more common pattern, especially for production WordPress sites where version control is important. I’m sure there are ways of including wp-load.php that depend on reliable PHP definitions or WordPress functions instead of typical directory structures.
It turns out goshen.edu is also SSL-only, so the ‘Idea: Loading scripts without “http” or “https”‘ issue is also necessary to get this “Insert shortcode…” button to work. Currently, I get a blank popup in production (due to SSL) but am able to see the PHP error in my local gc.edu dev site, which has an identical file structure.
Thanks again for a great plugin!
– Micah
Web Developer at Goshen College
goshen.edu
- The topic ‘Support custom wp-content directory’ is closed to new replies.