Forum: Kleo Geolocation

This forum is closed for new topics. However, you can still search for a solution in the old topics. For technical support related to the Kleo Geolocation premium extension please open a new premium support ticket.

[Not resolved]Geo Location Not Working as Intended with Custom Members Loop on a Page Template

Forums Kleo Geolocation Geo Location Not Working as Intended with Custom Members Loop on a Page Template

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #50552
    Mark Behnken
    Member

    Hi Eyal,

    I am using the Kleo theme and your Kleo Geolocation add-on. Using the code snippets below via instructions from the BP Codex, I have successfully configured the default members loop (members page) to only show female members who are currently online. Now when searching using a geo search, all works as intended as it only shows “female members” “online” within the radius of the location I entered in the search box.

    However, I cannot get this to work correctly when using a custom members loop on a page set up via a custom template. Geo searches work correctly, however, it does not show only online female members but instead returns all members (male and female, online or offline) when performing a Geo search. Do you have any insight into why this works fine on the default members loop (members page) but not on a page using a custom template?

    I’ve provided all the code I am using below for your reference. I’ve also attached my functions.php and page template to this ticket since it doesn’t appear to be displaying correctly on the page.

    Code added to my custom page template file to only return female members who are online:

    Code added to my functions.php to allow the above code to work so I can display online female members only:

    My Custom Page Template Code:

    Thank you for your help!

    Regards,
    Mark

    #50553
    Mark Behnken
    Member

    Reattaching files renamed to .txt, .php did not upload.

    Attachments:
    You must be logged in to view attached files.
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.