WP Supersized
SupersizedDir Custom Field (3 posts)

  1. Aaron Ware
    Posted 4 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.


  2. Benoit De Boeck
    Plugin Author

    Posted 4 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. Aaron Ware
    Posted 4 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

  • WP Supersized
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic