sylvester vader
Forum Replies Created
-
AuthorPosts
-
July 31, 2016 at 1:08 pm in reply to: Split: "Get Directions" button to Open Google Maps Link #237566
ok i put the 2 last listings on concept and then the directions goes to the adress 2 down
so i realy think something is wrong here
please help me to fix thisJuly 31, 2016 at 12:22 pm in reply to: Split: "Get Directions" button to Open Google Maps Link #237534ok i did some testing with the coding and i found the problem
on the basic get location button it seems to only go to the location of the latest added listing
the button from this addon works good if you use the first one with only the coordinates
if you add the name, and the name does not exist in google maps then it wont work
it will not go to the coordinatesonly things that google can find will work
like address for example
function geodirectory_detail_page_google_map_link() { global $post, $preview; if ( !$preview && !empty( $post->post_latitude ) && !empty( $post->post_longitude ) ) { if (isset($post->post_address) && $post->post_address) { $sd_address .= $post->post_address; } if (isset($post->post_city) && $post->post_city) { $sd_address .= '+ ' . $post->post_city; } if (isset($post->post_region) && $post->post_region) { $sd_address .= '+ ' . $post->post_region; } if (isset($post->post_country) && $post->post_country) { $sd_address .= '+ ' . $post->post_country; } $maps_url = add_query_arg( array( 'q' => $sd_address, 'sll' => $post->post_latitude . ',' . $post->post_longitude, ), 'http://maps.google.com/' );
is there a list on where al the add_action parts are ?
for example
add_action( ‘geodir_after_description_on_listing_detail’, ‘geodirectory_detail_page_google_map_link’);says basicly after the description on the listing page
but how does this script part know where that isplease help me explain
and ill make lots of plugins and such in futureif you do have a subtitle on location page then it works the same
i had the same problem
you can fix it at pages in wp-adminthen edit the page
you said location but this page doesnt have a subtext
atleast not with me
you need the front page i thinkif you dont see subtitle
go to top of page and you can change the screen options there
yes select all and you will see all that you can editincluding subtitle
a i see the problem
the edditing works in admin if you put on allow users to see wp-adminhowever the buttons on the site itself are not useable
me as an admin can edit listings directly in the website
but none admin cant seem to do thisit works for now directly tru wp-admin but i hope there will be a fix so it would also be possible in the main site
ok then its ok, i dont want problems
in future i will hopefully put it on recurring payment but for now i keep it as an optionthanks for the explaination
o lol i think i see it
i dont have that function
All i see is this:
General
Google Analytics
Search
Dummy Dataand there is no section or even a part where i can do that 🙁
i can change the user role inside user part of wordpress but this does not give it the function to edit listings
only administrator works but then they can mess up my site
yeah thought so, i need to make some plugin to make this work how i need it 😉
yes but thats not what i need 🙁
what i want is to show the netherlands on the root site
when opening /location/spain/ it needs to show listings for spain
when opening /location/netherlands/ it needs to show all listings in netherlandsatm i have one fix what should work but this is more like a work arround
by changing my .httaccess so the main site opens /location/netherlands
but dont show the link then it works but there should be a better way to do thisyes i found that out but this only works if you put Map Auto Zoom off
if its on it will show center of al listings
default location dont worksecond problem is location/country
if use Map Auto Zoom then it works good
it shows al listings in the selected country
however the first entry shows all listings in whole world
default location dont work if auto zoom is onyou saying quote: It is not possible to open on first entry on the Netherlands only.
this is not correct
it will work if you put auto zoom ofok i think i got it working now
somehow the settings you put in are not always put in action
i used gd tools to check and after this its working fineok uhm i found it on google
was looking all day 😛
and after i put this post i found iti donno if its the correct wag but it seems to work for now
<?php echo do_shortcode(“[shortcode]”); ?>yes i know but maybe there was a way to change it to work with geodirectory
im trying to remake it now but im not so good with wordpressany of you can explain to me how to add widgets to a location in the theme that i want
im realy not good at thatatm im adding a widget to home page then get the source code from the page
select the part i need and add it to the script on the place where i need and then remove widget from the location a put it beforebut this is not the normal way 🙂
so i hope somebuddy can help me
-
AuthorPosts