WordPress Landing Pages
Bug: plugin does not support non standard project structures (3 posts)

  1. ralcus
    Posted 2 years ago #


    In the WordPress install i work on we don't use the standard directory structure. WordPress allows you to move the wp-content, plugins and themes directory as long as you tell wordpress in the wp_config file where you've moved them too.

    Inside a plugin to get the plugins url or directory the plugin needs to use the WordPress plugin url or plugin directory functions.

    On line 168 of /modules/module.post-type.php file and line 599 of /modules/module.ab-testing.php some path variables are setup using the string "wp-content".

    This sets up the path variable incorrectly in my WP project because my content folder is not called "wp-content". WordPress not only allows you to move the wp-content folder but also rename it to whatever you want. That's why it's best to rely on the WP helper functions relating to the plugin directory path.




  2. David Wells
    Plugin Author

    Posted 2 years ago #

    Do you know how to reference the custom wp-content directory?

  3. ralcus
    Posted 1 year ago #

    I'm not sure the best way to do that. Wouldn't you only need the plugin directory? or do you store files in wp-content?

    If you do store stuff in the actual wp-content folder maybe you can get the plugin directory using plugin_dir_url() and then go up one.

    Not sure if this is the most ideal way to do it but as far as i know plugins always have to be in the wp-content folder whether of not that wp-content folder has been moved somewhere else or renamed.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress Landing Pages
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.