WordPress.org

Ready to get started?Download WordPress

Forums

What Would Seth Godin Do
WWSGD 2.0 does not support alternate WP or plugin directories (2 posts)

  1. Kenn Wilson
    Member
    Posted 2 years ago #

    WordPress has supported alternate plugin directories since 2.6 and has pretty much always supported keeping WP itself in a directory other than where the content is displayed (eg, content at site root, WP in /wp). WWSGD 2.0 does not support either of these.

    When loading jquery.cookie.js, the plugin attempts to load it with (line 203):

    <script type="text/javascript" src="<?php echo bloginfo("url"); ?>/wp-content/plugins/what-would-seth-godin-do/jquery.cookie.js"></script>

    Which results in a URL of:
    http://example.com/wp-content/plugins/what-would-seth-godin-do/jquery.cookie.js

    In my particular case, that URL should look like:
    http://example.com/content/plugins/what-would-seth-godin-do/jquery.cookie.js

    But some people may also need something like:
    http://example.com/wp/wp-content/plugins/what-would-seth-godin-do/jquery.cookie.js

    ... or any number of other paths.

    The correct way to do this is to check the WP_CONTENT_URL and build your path using that value.

    Optionally, an option to revert to the 1.x server-side method for this would be nice.

    Thanks!

    http://wordpress.org/extend/plugins/what-would-seth-godin-do/

  2. Richard K Miller
    Member
    Plugin Author

    Posted 2 years ago #

    Fixed in WWSGD 2.0.2. Thanks for the help, Kenn.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic