Location Question

This topic contains 6 replies, has 2 voices, and was last updated by  Alex Rollin 6 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #419768

    Stephanie McQueen
    Expired Member
    Post count: 57

    First off, I wasn’t sure if this would be a core issue or multilocation, so I threw it in core. It made more sense.

    When I click on a listing (from homepage https://www.mytinyhouseparking.com/ ) it takes me there, cool, no problem.

    Clicking on a listing it shows everything great.
    Reference URL: https://www.mytinyhouseparking.com/communities/united-states/oregon/waldport/th-communities/tiny-tranquility-oregon-coast/

    But then when I look at the listing, but I’m interested in going back to the category to look at more. When I click the category on the listing page it takes me to the location’s listings. (or even the breadcrumbs)
    Reference URL: https://www.mytinyhouseparking.com/communities/united-states/oregon/waldport/th-communities/

    Since it’s only that location’s listings, I only see the one thing.

    Is there some way to have the category link back to the ENTIRE category, not based on location previously (or currently) viewed?

    I could put in a menu with links, but I can see someone getting frustrated at this due to the fact that my particular instance of map is more broad and less location based.

    #419769

    Stephanie McQueen
    Expired Member
    Post count: 57

    As a side note: the widget used at the top of the page also directs to the location’s category instead of the entire category. URL: https://www.mytinyhouseparking.com/communities/united-states/oregon/waldport/th-communities/ (Above the listings)

    I can provide temp admin creds if needbe.

    Thanks guys!

    #419820

    Alex Rollin
    Moderator
    Post count: 27815

    Change Category and Tag links to remove the Location Filter

    Links for Categories and Tags on the Detail page will include the location of the listing. For example, the “Restaurant” Category at the top of the page will have a link that includes the location of the listing: https://Mysite.com/places/united-kingdom/northern-ireland/newcastle/restaurants/
    Use the following snippet to make the link for Categories and Tags point to the base page like: https://Mysite.com/places/restaurants/
    The following Snippet will remove the filter that adds the location slugs to the URL on any page including Listing pages.

    
    
    
    remove_filter('term_link', 'geodir_get_term_link', 10);
    

    Add snippets with the code snippets plugin , https://wpgeodirectory.com/docs/useful-plugins/#snippets

    #419902

    Stephanie McQueen
    Expired Member
    Post count: 57

    The location filter has been off (where I could find it anyway, maybe it’s in more places than just Design > Details?)

    For the snippet, does it need to run everywhere, front end only, or back end only? (or does it matter? lol)

    Thanks a ton! I was so stumped trying to figure this out on my own. 🙂

    #419971

    Alex Rollin
    Moderator
    Post count: 27815

    Front end only should be enough.

    This functionality is part of how the plugin works, to have the breadcrumbs and category links filtered for location, but it isn’t always the most desirable solution for a small and/or hyper-local directories.

    For larger directories it is extremely important, and a big part of the SEO strategy. Putting this customization into effect doesn’t delete any pages, but it does make the links to the location specific category pages harder to find and so there is less of a chance of backlinks

    #420037

    Stephanie McQueen
    Expired Member
    Post count: 57

    Ah I see. So I should probably put this on the to-do list for when the directory gets larger to improve SEO. It’s so small right now (37 listings) that location filter was actually making it harder to see more options.

    Although I guess I could do a custom links menu and put them in with a widget to resolve this issue as well and not affect SEO, correct?

    Not something I’d do immediately, but definitely a future tweak.

    #420082

    Alex Rollin
    Moderator
    Post count: 27815

    If doing it now will help your users, great! It won’t ding your SEO because it doesn’t effect a yoast sitemap at all. You should use Yoast if you dont already.

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket