HELP – Place Tags

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

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

Open Support Ticket
  • Author
    Posts
  • #28945

    taylorsamuel
    Free User
    Post count: 15

    Is there a way to set the place tags (i.e. the geodir_post_tags_row) on adding a listing to be a set of check boxes based on tags already setup?

    At the moment the input box is 40 characters of free formate text.

    I would like it to show Wales, Scotland, Ireland, England as check boxes for users to select. I have already set these place tag categories up.

    Martyn

    #28975

    Paolo
    Site Admin
    Post count: 31206

    Not without a code customization. Not a very simple one.

    Thx

    #28980

    taylorsamuel
    Free User
    Post count: 15

    Could you point me in the right direction please? i.e where should I start looking? Will give it a go myself.

    #28986

    taylorsamuel
    Free User
    Post count: 15

    or maybe i could use a custom taxonomy field, but taxonomy is missing from the available filed options.

    #28990

    taylorsamuel
    Free User
    Post count: 15

    on the page …../add-listing/?listing_type=gd_place where can I locate the files to customise.

    Martyn

    #29004

    Paolo
    Site Admin
    Post count: 31206

    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

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

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

Open Support Ticket