WordPress.org

Forums

Pazzey's Store Locator
Hard coded wp-content (1 post)

  1. gwc_wd
    Member
    Posted 2 years ago #

    Installed the plugin for a peak and it looks great.

    It looks like you are hard coding the plugin's file locations to /wp-content/ which means it won't work on any site that has moved or renamed that directory, which is not completely uncommon.

    I found it on line 219 of storelocator.php.

    You're already using a call to get the blog url. Perhaps you could change that to get the plugins_url() or better the plugin_dir_path()and not use a url call at all.

    If this makes things too complicated or breaks something else, no worries. A simple rewrite rule in htaccess solves it for me and will work for others who have non-standard installs.

    It's good work you're contributing to the community and sincere thank you for it.

    http://wordpress.org/extend/plugins/pazzeys-store-locator/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Pazzey's Store Locator
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by gwc_wd
  • This topic is not a support question
  • WordPress version: 3.4.2