Bring Your Business to Life › Support › File Un-Attach › Ajax not working when WP in not standard directory
- AuthorPosts
- May 8, 2014 at 4:32 am #111111
martijn
ParticipantI 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
June 8, 2014 at 10:35 pm #144748Xpark Media
KeymasterLooks 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.
- AuthorPosts
- You must be logged in to reply to this topic.