Benjamin

Forum Replies Created

Viewing 2 posts - 61 through 62 (of 62 total)
  • Author
    Posts
  • in reply to: Filter Search within Categories Automatically #437623

    Benjamin
    Full Member
    Post count: 67

    Yes, the categories are the countries and their subcategories, like states. Your location option doesn’t work for this since we’re so largely scaled, we needed them to be grouped by larger areas than cities. The Near field doesn’t seem to work at all with how it’s set up.

    Adding the category selector was one step towards what I’m looking to do though, thank you. Is there any way to auto populate that with the category that’s being viewed though? Not when the category has been selected and searched, but just when you’re viewing the category page. We have it set up so on the home page it shows all the top level categories.
    Also, is there any way I can add a custom field to the main search bar like I can with the categories option? It would be nice to have our only filter on the main bar instead of under the gear option.

    Unfortunately I’m not sure if I can grant access to our site at the moment, as we’re currently building it on a local system so the site is not online yet. I’ll see what I can do about that though.

    in reply to: Custom Tab and Reorder Tabs conflict? #436249

    Benjamin
    Full Member
    Post count: 67

    Thank you for the guidance! I figured that I’d have to change the function name, but doing so still wasn’t working before. I’m not super well versed in Javascript yet so I missed the fact that the second part of the ‘add_filter’ section is the function name too, since the first and second sections within it were the same in the example. It now works when I have it set like this:

    // this is the snippet that adds the filter, calling the function below.
    add_filter(‘geodir_detail_page_tab_list_extend’, ‘geodir_detail_page_tab_list_reorder’) ;

    // this is the function that does the re-ordering that we call with the add filter snippet above.
    function geodir_detail_page_tab_list_reorder($tab_array)

    For reference, in case someone else needs it.

    May I suggest a change to one of the originally mentioned articles though? Personally it seems a little odd that two tutorials that should be compatible have conflicting functions like that.

    Thanks again!

Viewing 2 posts - 61 through 62 (of 62 total)