Your address will show here +12 34 56 78

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

  • Author
    Posts
  • #10439

    puiu

    Hi Anna,
    I’m working to customise the theme for using it like a general business directory theme. Everything is fine because the theme is built in a smart way, clean and well organized .
    I just want to ask how easy/difficult is to have the possibility for user to choose multiple categories in frontend submit page? ( Categories to be displayed like checkboxes or something similar)
    Regards

  • #11009

    Anna
    Keymaster

    Hi Puiu,

    I’ll run this over with my partners and let you know. I need their technical expertise to answer.

    I’m really happy you find the code easy to navigate. That is wonderful news I’ll share with my partners as well 🙂

    I’ll post a reply tomorrow.

    Thank you
    Anna

  • #11162

    Anna
    Keymaster

    Hi Puiu,

    What you want to accomplish, is not very easy but not too hard also.

    You should

    1. display the categories in a checkbox format or a multiple select list. Capture the Post value for categories as array. This is done in libs/templates/front-end-submission.php

    2. In user-dashboard-add.php – you need to work with the current wp_set_object_terms to add all the categories. wp_set_object_terms accept array so should be pretty straight forward assuming you are sending the POST values correctly.

    Good luck!
    Dev Team

You must be logged in to reply to this topic.