WordPress.org

Ready to get started?Download WordPress

Forums

WP Supersized
SupersizedDir Custom Field (3 posts)

  1. aware
    Member
    Posted 2 years ago #

    I noticed that you guys are trying to load in the http:// uri path instead of the directory /var/www/ path when loading in xml files for custom images and slideshows. From my experience most shared hosting environments are not going to allow you to override "allow_url_include" in a php.ini and will have it disabled by default. I'd suggest utilizing something other than the the actual web address when utilizing a custom directory. Utilize the trailingslashit( get_stylesheet_directory() ) . $customDir; instead.

    Just a suggestion.

    http://wordpress.org/extend/plugins/wp-supersized/

  2. Benoit De Boeck
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks for the suggestion. I now use WP_CONTENT_DIR instead.
    By the way, I think that get_stylesheet_directory() would give you the template directory, not the wp-content directory itself. Am I wrong ?

  3. aware
    Member
    Posted 2 years ago #

    There is a separate get_template_directory() if you want to check for parent/child themes. The get_stylesheet_directory() will get the current theme location. Where get_template_directory() will get the parent. Additionally usingg WP_CONTENT_DIR global is frowned upon. http://codex.wordpress.org/Determining_Plugin_and_Content_Directories

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic