jkirker
Forum Replies Created
-
AuthorPosts
-
Got it. Thanks Paolo!
Thanks Stiofan,
Any way to exclude the country? It’s adding too much length to the title tags… I’d also prefer abbreviated state/region/province names for the same reason and in the U.S. when people search on a city, state combo they use the abbreviated version more than half the time.
I’ve got a problem with this that I hope someone can help me with.
In the list view where listings from multiple cities are displayed, the %%current_location%% value is including the first city listed in the title for Yoast.
How can we we have it just use the region for list/search?
ex:
http://www.rinktime.com/rinks/tags/united-states/california/adult-ice-hockey-tournaments/%%current_location%% should just be “California” instead of “Santa Rosa California”
Thoughts? Thanks in advance.
Here’s the code I’m currently using:
// Add location info to yoast titles start function retrieve_var1_replacement( $var1 ) { global $post; if ($post->post_city) { $city = $post->post_city; } if ($post->post_region) { $region = $post->post_region; } if ($post->post_country) { $country = $post->post_country; } if (isset($city) && !empty($city)) { $location = $city . " "; } if (isset($region) && !empty($region)) { $location .= $region; } //if (isset($country) && !empty($country)) { // $location .= " - " . $country; //} return $location; } function geodir_add_dyn_yoast_title_tags() { wpseo_register_var_replacement( '%%current_location%%', 'retrieve_var1_replacement', 'advanced', 'Adds location to title tags' ); } add_action( 'wpseo_register_extra_replacements', 'geodir_add_dyn_yoast_title_tags' ); // Add location info to yoast titles end
Sorry – please delete this. I’ll add as a reply to another post.
November 14, 2015 at 7:50 pm in reply to: Is there a way to hook into the "No listings found" #60199Cool, let me know
Thanks Paolo! 😉 Have a great weekend.
Honestly I have no idea. Google somehow found it walking the links.
I’m written custom 404 automated search-engine/redirector so as not to provide Google with more false 404’s. So while you can get them on my site, it’s increasingly difficult.
Just figured that you guys might want to know about it. Kinda funky.
Thanks Stiofan – works like a charm. 😉
😉 Thanks… I thought I was going crazy. Well… Crazier.
Hi Paolo,
I’ve got the remove working – however now I’m trying to add these back a little further down the page but not having any luck.
Could I add this back with a hook at the bottom of the sidebar? Thoughts?
I’ve tried a few things but I’m obviously doing it wrong.
Thanks again for all your help – always. 😉
I belive I have it working now. Wish it used memcache for queries and objects…. 😉
Things are working fine now with the exception of Safari.
Not sure why.
Please let me know if you have any thoughts.
Thanks,
JohnPS. I’ve got it turned off for now, but you can log in with the credentials above and enable it to see what I mean.
October 10, 2015 at 3:44 pm in reply to: Add Page X of Y to Top of Page – Listing and Search Views? #56477I want a direct line with God.
Is something this small considered an actual feature?
And perhaps I’m not using the button as intended. But I’d love a way for someone to be able to find locations that are near them for the active category – that would return a list just as if they were doing a search after choosing near me by clicking the compass which his horribly hidden and not obvious.
Hi Guust,
Watch this quick 1 minute video – why would the two results be different?
Try it for yourself… Go here:
http://www.rinktime.com/rinks/united-states/minnesota/red-wing/Now, click the “Find Rinks Closest To Your Current Location” button and allow geolocation.
It will redirect you to the home page rather than a listing/search result page and put the list of the nearest locations at the bottom.
Why would this behave differently than clicking the compass in the search which also then returns a list of the locations nearest you?
Try it – clear the near me compass and go back to:
http://www.rinktime.com/rinks/united-states/minnesota/red-wing/Click the compass in the search bar. You’ll see it loads the locations nearest you – but in the listing/search results mode.
Why would the two results behave differently? The last result seems more appropriate, no?
-
AuthorPosts