Custom Taxonomy Filter

This topic contains 2 replies, has 2 voices, and was last updated by  Paolo 8 years, 9 months ago.

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

Open Support Ticket

Tagged: , ,

  • Author
    Posts
  • #122777

    Anthony Accetturo
    Buyer
    Post count: 76

    I searched your forums for information on adding a custom tag non-hierarchical taxonomy. I found little info, with the exception of this somewhat older post. I was wondering if it was still accurate. My goal is to add taxonomies for things like accommodations, expertise, care types, payment insurance types, etc. Each one has hundreds of fields that are shared across 50,000 listings. I could create Multi Lists or checks pretty easily, but giving the user 1000+ check boxes is not optimal. Giving them a tag autocomplete box 4 or 5 times is and likely more efficient. This would be super helpful even if I could be pointed in the right direction. I would even be willing to pay as a custom job, as no WP directories seem to support this. I came here after paying Templatic $600 for a mashup of spaghetti code that seemed to fail no matter what I did(Stock install with all there plugins throughs about 45 warning/errors on every page in debug mode), and none of there support staff seemed to know what wordpress is from what I can tell. They had a custom work section for like $150 that was unwilling to make any changes beyond CSS modifications and turned down any work I sent them, including to just fix there own bugs.

    Regardless, Thats a past chapter, and your software is leaps ahead in functionality, code design, commenting and just about everything else. If I cannot do this, I can settle for custom checkboxes.

    HERE IS THE OLD POST FROM AN ADMIN HERE

    In geodirectory/geodirectory_template_actions.php around line 875 you find

    add_action( ‘geodir_add_listing_form’, ‘geodir_action_add_listing_form’,10);

    From your theme’s functions.php file you should remove that action.

    remove_action( ‘geodir_add_listing_form’, ‘geodir_action_add_listing_form’,10);

    Copy the function geodir_action_add_listing_form (it’s right below the add_action in geodirectory/geodirectory_template_actions.php) paste it in your theme’s functions.php file and rename it. Example my_geodir_action_add_listing_form.

    Now modify the function to remove the text input field and use a select with your predefined tags instead.

    Add a new action in your functions.php calling your new function.

    add_action( ‘geodir_add_listing_form’, ‘my_geodir_action_add_listing_form’,10);

    Let us know how you went.

    Thanks

    #122778

    Anthony Accetturo
    Buyer
    Post count: 76

    EDIT, I just noticed you have a autocompleting field so I don’t need tags. Thank you!

    #123143

    Paolo
    Site Admin
    Post count: 31206

    Fantastic, thanks for letting us know!

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
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount