Saltar navegación

[Resuelto] File upload fields not showing in form on frontend

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Zona horaria del colaborador: Asia/Kolkata (GMT+05:30)

Este tema contiene 0 respuesta, tiene 1 mensaje.

Última actualización por Minesh 1 year, 4 months ago.

Asistido por: Minesh.

Autor
Mensajes
#2795617
Scherm­afbeelding 2025-02-06 om 21.31.47.png

Tell us what you are trying to do?
I'm buiding a knowledge base where user can upload documents and created a form that creates a post including the document. file upload fields are included in the form but won't show on the front end. See test form on enlace oculto

Is there any documentation that you are following? Checked all forms documentation, form is correct,
Is there a similar example that we can see? enlace oculto

What is the link to your site? enlace oculto
Off topic: For some reason the documents will only show when pressing 'Zoek' button while it should show document pages already added.

#2795682

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

That is strange. I'm not sure why file upload field is not showing on frontend.

Can you please send me admin access details and let me review whats going wrong with your setup.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2795719

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

I've checked the custom field group that is assigned to post type Document:
=> enlace oculto

I do not see any file related field.

Do you mean you want to add the Generic file upload field? Can you please clarify why you need that file field only on form and you do not added to the custom field group above?

#2795736

I just added a CPT field doc2upload to the CPT Documenten and added the field to the form.

What i'm trying to accomplish is an easy way for users to upload a document and create a post about the document in which the document is embedded and shows as an embedded pdf see enlace oculto

#2796223

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

I can see now you have added the file field to upload the PDF file.

You can use any of such plugin to display the embedded PDF:
- https://wordpress.org/plugins/pdf-embedder/
- https://wordpress.org/plugins/pdfjs-viewer-shortcode/