WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Plugin has issues in non-typical WordPress installs

[Resolved] Plugin has issues in non-typical WordPress installs

  • Please take a look at your plugin. It fails to include its templates correctly if the wp-content directory is not in the same directory as site_url. It is a perfectly valid WordPress install if WordPress is in a sub-directory from document_root and wp-content is also a sub-directory in document root.

    Your plugin also breaks if the name of your plugin folder is changed – take a look at the plugin_url function.

    Similarly your templates will fail since they attempt to climb the directory structure to find wp-load.php. I suggest you look at writing a hidden div on wp-footer and using the standard WordPress constants to find your files and values.

    Try making your plugin work in this kind of structure:

    wordpress (directory with WordPress codebase)
    index.php
    wp-config.php
    wp-content

    https://wordpress.org/plugins/tab-slide/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author zoranc

    @zoranc

    Are you still experiencing this with v2.0.0 as I changed the way the templates are being called now.

    In all honesty, I haven’t tried playing around with custom folder structures, but will definitely give it a whirl if it still doesn’t work for you.

    Plugin Author zoranc

    @zoranc

    Check out the upcoming 2.0.1 version (Not fully tested yet (~90% now)

    These issues were directly addressed in this update. Let me know if you are still experiencing these problems on your custom install.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Plugin has issues in non-typical WordPress installs’ is closed to new replies.