Safe Report Comments
[resolved] Fix for different Site & WP URLs (3 posts)

  1. jkoon
    Posted 3 years ago #

    This plugin does not work if the Site Address and URL Address are different. When they are different the plugin uses the home_url to find the admin-ajax.php file when it should be using the site_url.

    You can fix this by replacing this (line 117):
    $ajaxurl = home_url( '/wp-admin/admin-ajax.php' );

    with this:
    $ajaxurl = site_url( '/wp-admin/admin-ajax.php' );

    Hope this helps, and hopefully this fix can get worked into the next version.



  2. Daniel Bachhuber
    Hand Built
    Plugin Contributor

    Posted 3 years ago #

    Hmm, good point. That was added to address cross-domain issues. What domain does your admin live on vs. your public site?

  3. jkoon
    Posted 3 years ago #

    our common practice is to have the site at http://myurl.com but have the wordpress install at something like http://myurl.com/wordpress/ or maybe http://myurl.com/website/

    this allows us to develop in relative secrecy then move & edit index.php (as well as the wp settings) in order to launch the site.

    just to give our exact example we have a news site at http://wvmetronews.com and the wp install is at http://wvmetronews.com/wordpress/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Safe Report Comments
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.