Forums › Nearby Posts › Cannot See or Use Activated Nearby Posts Plugin
- This topic has 8 replies, 3 voices, and was last updated 7 years, 2 months ago by
Eyal Fitoussi.
-
AuthorPosts
-
February 7, 2015 at 11:53 pm #30446
mav3000
MemberHi Eyal, I’ve bought the ‘Nearby Posts’ plugin in the hope that I can modify it to list posts nearby to the ‘current post’ rather than the current user’s location.
However I can’t seem to see where the plugin is in my WP Dashboard!
I’ve installed and activated the plugin, and have entered my licence key – the plugin says “License is activated. Thank you for your support!”.
In the WP Plugins list I see the plugin (underneath it it says “Please deactivate the license key before deactivating the plugin” which is weird, but I guess is ok?
Question is, where is the settings page for this add-on?
Thanks, Richard
February 8, 2015 at 9:48 pm #30454Eyal Fitoussi
MemberThank you Richard for your purchase.
1)
In the WP Plugins list I see the plugin (underneath it it says “Please deactivate the license key before deactivating the plugin” which is weird, but I guess is ok?
This is ok. It is just a warning preventing you from deactivating the plugin while the license key is still activated. Just to prevent any conflicts with the license key.
2) There are no settings for this add-on. The only settings can be found within the Nearby widget or when you use the nearby shortcode.
3) The current version of the add-on does not support a nearby to “current post” but only nearby user. However, I am now working on the next version which will support this feature. I am trying to release the next version today. or no later than tomorrow.
Let me know if you have any other questions.
Thank you
February 9, 2015 at 10:49 am #30453mav3000
MemberHi Eyal,
That’s great news thank you – I have the Lat/Long of the Current Post so can pass this into Nearby Posts as variables if needed.
Question:
Would it be possible to use ‘Nearby Posts’ to get a nearby posts for a particular Taxonomy?
E.G. on my page I would have the Post, and then underneath I would use Nearby Posts multiple times to list a number of other posts with different Terms:
1) Nearest ‘Shop’
2) Nearest ‘Accommodation’
3) Nearest ‘Food Outlet’It would be great to use this as a WP Query type-plugin which when used, will list X number of Posts of a specific Post Type with a specific Taxonomy:
E.G:
[GMW-Nearby-Posts qty=5 post-type='places' taxonomy='place-type' term='shop']
We could then use the Query Array to output the results in a Loop as we like using our own code and CSS.
Alternatively, If the plugin could output simple ‘Nearest’ Results of a specific Term this would also be great.
See ‘Nearest Airport’ and ‘Nearest Ferry’ on this website:
http://www.homeaway.co.uk/p85299#map
This is exactly what I need for my current project.
February 9, 2015 at 10:58 am #30452mav3000
MemberI should add that I’d like to use the ‘Nearby Posts’ outside of the Loop, but can pass the shortcode the Lat and Long in the Template File – if the shortcode could accept them as options.
February 12, 2015 at 9:03 am #30451Eyal Fitoussi
MemberHello Mav,
I am almost done with the new version of Nearby Post. I adde a new “nearby” attribute to the shortcode. There are 4 ways you can use the “nearby” attribute:1) nearby=”user” – will display posts near the user’s current location
2) nearby=”post” – display posts near the post being displayed in a single post page.
3) nearby=”post ID” ( ex nearby=”11″ ) – display posts near the post with ID 11
4) nearby=”latitude,longitude” – display posts near certain coordinates.I also added an advanced search query that users the WP_query to get the results. Originally the plugin used a custom SQL query to do so. Using the WP_Query and new filters that I also added you will be able to include/exclude taxonomies/terms easily by adding a simple custom function to the functions.php file ( see example ). Adding the ability to include/exclude taxonomies/terms using shortcode attribute is way to complex and will require a more complex code.
If you’d provide me with an email address I will send you the new version to test.
February 13, 2015 at 12:34 pm #30450mav3000
MemberHi Eyal,
Email address included in the private section of this post. Looking forward to testing it and will be happy to do so.
I hope that the custom query will be able to return a post so that I can display in the template the title, featured image, excerpt etc, but also display the distance from the ‘location’ used for the search too – e.g. ‘9.1 miles’ etc.
Just thinking for other users if it would be useful to have the ability to:
1) Return posts from the WP Query for displaying into a template file
2) Displaying a single map showing all the posts in the WP Query?
I only want to display 1 post for what I need at the moment, but for arrays of posts, this may be useful.
Private Content HiddenFebruary 21, 2015 at 11:33 am #30449mav3000
MemberHi Eyal,
How are you getting on with this update?
Thanks, Richard
February 21, 2015 at 10:27 pm #30448Eyal Fitoussi
MemberHey Mav,
I just emailed you the beta of the new version.1)
“I hope that the custom query will be able to return a post so that I can display in the template the title, featured image, excerpt etc, but also display the distance from the ‘location’ used for the search too – e.g. ‘9.1 miles’ etc.”
That is exactly what the plugin does. It uses WP_Query to return posts found nearby the user’s current location or nearby a single post; depends how you set it. It does as well display the distance.
2)
” Return posts from the WP Query for displaying into a template file”
There is a template file that can be modified based on your needs.
3)
“Displaying a single map showing all the posts in the WP Query?”
Displaying a map is not possible at the moment ( unless you write the script yourself. It might be added in the future.
Let me know if you have any questions.
March 5, 2015 at 11:16 pm #30447Massimo Clementi
MemberThis reply has been marked as private. -
AuthorPosts
You must be logged in to reply to this topic.