Please or Register to create posts and topics.

Custom Fields in New Topic

Need to add two different custom fields options:
A. Add standard custom fields such as Date, time of day, tempeature, etc.
B. Need to add the ability to have the feature represented by the image, i.e.geolocation.
(The way this needs to work is that the member poster moves the pin on the map and the GPS coordinates are filled.)
When the new topic is submitted, the members will be able to see all the custom fields and see the GPS coordinates.

I was going to use the ACF plugin but it does not have the option to put custom fields in forums. Any other plugin that will work?

Any suggestions on what plugin will accomplish the B option?

Uploaded files:
  • geolocation.jpg

Hello @inhissteps

Probably you have to add custom PHP code by using the following hook for displaying it at the end of the editor:

  • asgarosforum_editor_custom_content_bottom

Afterwards, you can process and customize the output of the data via the following hook at the end of the post:

  • asgarosforum_after_post_message
If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!

What file do I put this:

  • asgarosforum_editor_custom_content_bottom

What file do I put this:

via the following hook at the end of the post:

  • asgarosforum_after_post_message

It is not a file, but an “event” instead which you can use to develop your custom PHP code and database queries to make it work. You could put it in your themesĀ functions.php for example.

If you want to support the development of Asgaros Forum, you can leave a good review or donate. Thank you very much!