Timeline for Conditional to modify query results
Current License: CC BY-SA 3.0
17 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
S Jun 26, 2015 at 23:05 | history | bounty ended | CommunityBot | ||
S Jun 26, 2015 at 23:05 | history | notice removed | CommunityBot | ||
Jun 22, 2015 at 13:32 | comment | added | Mitul | @rpl let me know if its working for you or not. | |
Jun 22, 2015 at 7:03 | comment | added | Mitul | @rpl i have added mysql query string into the answer let me know if you have any question | |
Jun 22, 2015 at 5:54 | answer | added | Mitul | timeline score: 0 | |
Jun 22, 2015 at 5:31 | comment | added | Mitul | @rpl Instead of the using the WP_Query please use the get_result($query) and use the custom query let me know if you want then i will write query for you | |
Jun 21, 2015 at 14:49 | answer | added | zaantar | timeline score: -1 | |
Jun 21, 2015 at 9:30 | history | tweeted | twitter.com/#!/StackWordPress/status/612553232318103553 | ||
Jun 20, 2015 at 0:44 | comment | added | user33056 |
@Mitul I have the latitude and longitude stored in the database as post meta data. The distance is calculated by calling a PHP function within The Loop. $distance = round(calc_distance($input_lat, $input_lng, $result_lat, $result_long, "M"));
|
|
Jun 20, 2015 at 0:42 | comment | added | user33056 | @birgire that looks interesting, thanks. Although, I already have the calculations for the latitude, longitude, and distance, will this be easily implementable? | |
Jun 19, 2015 at 11:05 | comment | added | Mitul | Instead of using the WP_Query use the custom query let me know if you need any help for to perform custom query, i need your meta key for that | |
Jun 19, 2015 at 10:40 | comment | added | Mitul | in database what you have stored latitude-longitude or Distance ? | |
Jun 18, 2015 at 21:48 | comment | added | birgire |
There's a way to add a geo_query attribute support to the WP_Query. I experimented with this here on GitHub, maybe that can help you along the way?
|
|
S Jun 18, 2015 at 21:34 | history | bounty started | CommunityBot | ||
S Jun 18, 2015 at 21:34 | history | notice added | user33056 | Draw attention | |
Jun 16, 2015 at 1:42 | review | First posts | |||
Jun 16, 2015 at 3:41 | |||||
Jun 16, 2015 at 1:37 | history | asked | user33056 | CC BY-SA 3.0 |