Add/Change Fields to Add Listing Form

Home Forums WordPress Theme CityBook – Directory & Listing WordPress Theme Add/Change Fields to Add Listing Form

This topic contains 5 replies, has 2 voices, and was last updated by  CTHthemes 1 week, 1 day ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #27166

    samraj501
    Participant

    Supported

    Hi Team,
    I want to add new fields to Add Listing Form. Some examples are:
    – I will add Location manually in the admin panel and user can select only those location only.
    – I want to pin code field.
    – Multiple Category Select drop down does not look good like other multiple select drop-downs.

    Also If by any chance I’m able to add fields through code, in which file these fields get stored or updated

    #27180

    CTHthemes
    Keymaster

    Hi, please use these options on Submit tab: http://prntscr.com/leuwdl

    Also you can change it directly from edit.php and submit.php files: http://prntscr.com/leuwl8
    Read this tutorial for overriding the template files in child theme: https://docs.cththemes.com/docs/advance-features/override-citybook-add-ons-templates/

    Then use this action filter to save your custom data to post: do_action('citybook-addons-save-addfields', $listing_id);

    #27284

    samraj501
    Participant

    Supported

    Hi Team,
    Thank you for your help.
    Also please let me know how to save sub-categories, as I had to change the ADD Listing form a little bit as the UX was not looking good according to my needs.

    A user can select only 1 parent category but multiple sub categories of that parent category.

    Please let me know the code and where to save it or guide me how to save these sub categories.
    Please refer to the image attached.

    Attachments:
    You must be logged in to view attached files.
    #27300

    CTHthemes
    Keymaster

    We will check and add it in the next update.

    #27309

    samraj501
    Participant

    Supported

    Kindly let me know the file and line where you are saving the category on ADD LISTING form submit

    #27340

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

You must be logged in to reply to this topic.

Hello! CityBook version 1.2.7 was released. Bulk Import Add-On, OpenStreetMapView Details
+