Skip Navigation

[Résolu] Use an image field file from users into a post type automatically

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem: On each post, I would like to display an image from a custom field in the post author's profile.

Solution: Use the Fields and Views button to insert the custom field, and use the User Selection tab to specify you want to display information from the post author.

Relevant Documentation:
https://toolset.com/documentation/customizing-sites-using-php/functions/

This support ticket is created Il y a 5 années. There's a good chance that you are reading advice that it now obsolete.

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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par israelP Il y a 5 années.

Assisté par: Christian Cox.

Auteur
Publications
#1378247

I added a custom user field, which is an "image" type used to upload a signature file in .jpg when a user registers..

I would like that "image" to apper automatically in every post type that the user creates. Users can create as many post types as they want, but that image in his registration data must appear automatically in his/her post types from the users data.

How can I get it, please?

#1378249
Screen Shot 2019-11-07 at 12.23.49 PM.png

Hi, if you have a Content Template for this post type, you can add the custom image field of the post author by clicking "Fields and Views" above the main content editor. Choose the custom User field you want to display, and then in the popup you can choose which User's photo you want to display in the User Selection tab (see attachment). Choose the author of the current post to display the author's custom image on every post in this post type. You can do the same in archives and Views to display the author's custom image field wherever this post is displayed.

Let me know if that doesn't solve the problem and I'll take a closer look.

#1380223

My issue is resolved. Thank you!