Open kartguru opened 4 years ago
What do you want to submit from the frontend exactly?
Can you give me an example?
I don't have a working example as yet. I am specifically using the Snax plugin as seen in https://bimber.bringthepixel.com/main/frontend-submission/ (user|pass meow|meow) but expect the code (inserted via functions.php) would assist others using any of the following in https://accesspressthemes.com/blog/top-5-frontend-post-wordpress-plugin/#6Frontend_Uploader
The image location is captured (from EXIF data) but the parent post (which is the next step in the submission process) is not capturing any location information. My assumption is we need to call that code in the post submission form.
Does that help?
https://github.com/dshanske/simple-location/issues/29 I think this is what you want.
My thoughts were going down that path originally (image to set post) but my focus changed to the post location as I'm concerned not all images will have EXIF data. It is hoped the city in the geo_address will probably be accurate enough. Therefore I thought calling your plugin at the post submission step we could capture location specifically for the post.
Hi
Simple Location works a treat on images but am ideally wanting to add to a Frontend Submission form. I'm no coder so my research suggests it might be something like this
`add_action('frontend_submission_form_end', 'add_simple_location', 10, 1);
function add_simple_location ($fe_post_format){ if (($fe_post_format == "text")||($fe_format == "image")){ // <-- only add to text and image forms XXX } }`
Appreciate any help and thought it'd be great to add into the documentation, alongside #48
Cheers