Neighbourhood images partially fixed after update [Potential Fix}

This topic contains 2 replies, has 3 voices, and was last updated by  Kiran 4 years ago.

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

Open Support Ticket
  • Author
    Posts
  • #540040

    Nicholas Marsh
    Expired Member
    Post count: 4

    Hi,

    In reference to a support request last week here, I was having issues showing the neighbourhood featured images in the GD > Locations widget and also on Location pages.

    Thanks to the recent update the GD > Location widget now shows the neighbourhood images which is great, so thank you! But my hero images on the Neighbourhood location pages are not working, they are showing the city’s featured image instead of the Neighbourhood image.

    Looking at the Location Manager code I did find a fix in the class-geodir-location-seo.php file in the get_location_seo() function by adding the following slug check statment for neighbourhoods after the slug checks for country, region and city.

    
    
    
    if ( ! empty ( $location_terms->neighbourhood_slug ) ) {
      $type = 'neighbourhood';
      $value = $location_terms->neighbourhood_slug;
    }
    

    That fixed things for me, so could be of help to the devs. Might just be for me but thought it’s worth mentioning for future releases or any one else.

    Thank you,
    Harry

    #540076

    Guust
    Moderator
    Post count: 29970

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

    #540269

    Kiran
    Moderator
    Post count: 7069

    A valid license is required to view this reply.

    You may need to login

    OR

    Buy either a Membership or valid license for this product.

    Thanks, Team GeoDirectory!

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

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

Open Support Ticket