Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • in reply to: Update Safe Changes to Template Files #53060

    Josh Carey
    Participant

    Hi Eyal,

    I’m trying to make some tweaks to the “Current Location” css and I followed the above formula to try to create a “future-proof” file. But it doesn’t seem to be working.

    The paths that I’ve tried:
    MyTheme > geo-my-wp > current-location > assets > css > gmw-cl-style.css
    MyTheme > geo-my-wp > plugins > current-location > assets > css > gmw-cl-style.css

    Also, when disabling the css file (by renaming the file to xgmw-cl-style.css) in the default plugin add-on location, it just breaks, and doesn’t try to get my customized file at either of those locations.

    Can you point me in the right direction?

    in reply to: Having trouble with Nearby Posts loop #52644

    Josh Carey
    Participant

    Hi Ariel,

    First off, I had to follow Eyal’s directions for updating the Nearby Posts plugin add-on to the latest version.

    But then basically, here’s the shortcode I used: (my custom post type is “location”, so you’d need to change that… I didn’t want to display a map in my case.)
    ‘[gmw_nearby_locations item_type=”posts” post_types=”location” show_map=”false” nearby=”user” radius=”999″ results_count=”1″ show_random=”false”]’

    Then my plugin settings:
    GEO my WP > Settings:
    Client-side Geocoder: checked
    Auto Locator: checked

    I think that’s all the magic there is to it…?

    The weird thing is though, the “show_random=”false” setting isn’t working for me, as for my current browser setting – I’m not allowing the site to see my location. So it IS just showing a random location on each page refresh. As soon as I allow my browser to view my location, then the site does grab the same “closest” location after each refresh. So for certain users who block browser location, this might be an issue, but time will tell.

    in reply to: Having trouble with Nearby Posts loop #52627

    Josh Carey
    Participant

    Hi Eyal,

    Yes, thank you! This helps a lot 🙂 I greatly appreciate all of your assistance!

    in reply to: Having trouble with Nearby Posts loop #52589

    Josh Carey
    Participant

    I do have one question that you might be able to help with… Instead of a “get directions” link. I’m trying to figure out a way to change the link to simply open the location on a map in a new tab. Basically without the user’s current location, ONLY opening the location’s map in a new tab. Does this make sense? I don’t want to have to manually go to google maps, navigate to the location and copy the special “share link” provided by google.

    in reply to: Having trouble with Nearby Posts loop #52587

    Josh Carey
    Participant

    I’m sorry for all the edits and following up…

    I think I got the single-nearest location thing figured out.

    in reply to: Having trouble with Nearby Posts loop #52585

    Josh Carey
    Participant

    Hi Eyal,

    Thanks so much for getting back to me. After updating the plugin add-on, it did fix the broken shortcode. I’m now seeing the list of locations just fine.

    Basically what I’m needing now is just the single nearest location to the user (like that top light-gray section in the screenshot). Is there a shortcode that can make that work? I can see that when I add ‘results_count=”1″‘, it only returns 1 result, but it seems to be random, as its not choosing the nearest location to me – every time I refresh, I get a different location.

    Also, will I be able to somehow manipulate the result to match the format in the screenshot? If its just a matter of tweaking the plugin content.php file, I can do that.

    in reply to: Having trouble with Nearby Posts loop #52570

    Josh Carey
    Participant

    If its possible, would you please provide a list of steps it took to create the demo page: http://demo.geomywp.com/nearby-posts-location/

    I feel like this gets me most of the way to where I need to be. We’re not really wanting a map (as per the previous screenshot), but rather just a list of nearby location posts (I’ll need to pull the title, some custom fields, and the featured image). Then the top section would need the closest location to the user, where I obviously pull the same info, but its just in a different visual layout.

Viewing 7 posts - 1 through 7 (of 7 total)