Ajax not working when WP in not standard directory

Bring Your Business to LifeSupportFile Un-AttachAjax not working when WP in not standard directory

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #111111
    martijn
    Participant

    I have a Git repo with WP as a submodule. So WordPress is installed in /wordpress so not in the root. Every time I update the plugin I have to perform a manual change (https://gist.github.com/martijngastkemper/10019599) to ajax.php.

    Can you fix this problem or I can try to resolve the problem. I think refactor ajax.php use Ajax in WP (http://codex.wordpress.org/AJAX_in_Plugins) is the right solution.

    Kind regards,

    Martijn

    #144748
    Xpark Media
    Keymaster

    @martijn,

    Looks like an issue with the server directory manager. We have tested the option in many subdirectories including multisites and it works fine.

    The only reason it will not work is if the plugins directory have a different location.

    We like to use this method, that way we don’t need to add a lot of javascript file in the front-end.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.