refillnotlandfill

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Display random locations in Polpular Locations widget #518587

    refillnotlandfill
    Expired Member
    Post count: 5

    I understand about the cost of using rand(). There are better ways to randomize search queries but that was a quick fix that I am hoping will not have to be used permanently. Different sorting methods might be useful to some people but not for my usage, or probably anyone else using Listimia. (Well, if I could sort by post ID I could manually change them in the database so that the 5 we wanted would have the lowest ID numbers, but that would be a really ugly kludge.) If you take a look at that theme, it has 5 (can be changed but only looks good with 3 or 5) “featured” locations showing. Adding pagination to this would not look good, so the only real options are a random selection or a way to specify exactly which locations you want to appear. (Or the best of both worlds, which would be the ability to randomly select only from those locations that have been marked to be featured.) I realize that this is not in any way a bug in Geodirectory. Had I realized how this was being implemented in the theme before I spent so much time on the site, I would have probably made a different choice.

    in reply to: Display random locations in Polpular Locations widget #518462

    refillnotlandfill
    Expired Member
    Post count: 5

    Thanks, and sorry about getting the title wrong. When I wrote that post I had just finished spending an hour looking through the code, and there are a lot of functions whose names start with “geodir_popular_location_widget_”, plus “Popular Locations” was also the title I had given to that widget, so I guess it was on my mind. I realize that displaying random locations would be of little use on something like a page specifically for displaying a list of locations, as the widget was probably intended for, but it would make it far more useful to anyone using the Listimia theme or simply using the widget/block in a similar way, and while it will not be trivial, it won’t require a lot of work. Then again, maybe I have just completely missed something and there is already a way to accomplish what I need.

    in reply to: Pages for individual places give 404 error #517467

    refillnotlandfill
    Expired Member
    Post count: 5

    That fixed it. I used your recommended structure. Thanks. Sorry that I did not do a more thorough search for a solution before posting here. This is the third time I’ve built a site using Geodirectory (although the first with v2–very nice revamp) and I really did not think there was an incompatibility with Bedrock. The only way I can think of for that to occur would be if you had hard-coded a full path based on normal WordPress file structure and the plugin is too well-written for that to have been likely.

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