Custom Fields in New Topic
Quote from inhissteps on July 15, 2023, 2:43 amNeed 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?
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:Quote from Asgaros on July 25, 2023, 4:05 amHello @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
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
Quote from inhissteps on July 25, 2023, 5:48 amWhat 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
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
Quote from Asgaros on August 4, 2023, 6:29 amIt 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.
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.