Skip Navigation

[Resolved] wpv post author meta key is image – change size (medium, thumbnail, .. )?

This thread is resolved. Here is a description of the problem and solution.

Problem:
Display post author custom image field with Elementor with archive.

Solution:

You can find the proposed solution in this case with the following reply:
https://toolset.com/forums/topic/wpv-post-author-meta-key-is-image-change-size-medium-thumbnail/#post-2295377

Relevant Documentation:
- https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#vf-154504

This support ticket is created 2 years, 10 months ago. 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.

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 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 5 replies, has 2 voices.

Last updated by matthieuB-5 2 years, 10 months ago.

Assisted by: Minesh.

Author
Posts
#2294735

Hello

I want to change the size of a picture loaded like this:

[wpv-post-author format="meta" meta="wpcf-hospital-profile-picture" resize="proportional" size="medium" item="@rotation-application.parent"]

the resize="proportional" size="medium" aren't doing anything, any suggestions on how to do this? a wordpress size medium would be great.
by the way this shortcode renders the url of the picture, so i placed it inside an <img src='shortcode-here' />.

Thank you!

#2295119

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

You are using wrong shortcode I believe. I guess you have a user custom image field and you want to display that custom image field. If this is correct.

To display the custom image field for your user, you can use the following shortcode:

[types usermeta="hospital-profile-picture" size="medium" item="@rotation-application.parent"][/types]

If this is not the case, please share screenshot of how you configure the "hospital-profile-picture" field in backend and where you want to display the field.

Maybe you can share problem URL where you want to display the image field as well as admin access details.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) 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.

#2295327

Hi Minesh

I got the usermeta (user that applied to job (rotation)) to work fine but
now i want to do the same for the author (job(rotation) owner) inside @rotation-application.parent

This is the custom field name: hospital-profile-picture - which contains an image

how would i do this?

#2295343

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

It depends on where exactly you want to display that field.

Can you please share problem URL where you want to display that field as well as admin access details. Let me check your relationship structure and I will offer you solution based on that.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) 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.

#2295377

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Thank you for sharing admin access details.

I've created the following content template:
- hidden link

[types usermeta='hospital-profile-picture' title='%%TITLE%%' alt='%%ALT%%' size='medium' user_id='[wpv-post-author format="meta" meta="ID" item="@rotation-application.parent"]'][/types]

Where:
- we are getting the parent post author ID using the following shortcode:

[wpv-post-author format="meta" meta="ID" item="@rotation-application.parent"]

And then we display the profile picture of hospital and pass the above post author shortcode to user_id attribute.

Now, I've added the template shortcode by adding the shortcode module to your elementor's template, and called the content template by adding the following shortcode:
=> hidden link

[wpv-post-body view_template="display-hospital-profile-pic"]

I can see on application single page, it displays the correct parent post author hospital profile image:
- hidden link

You can move the shortcode at your desired place where you want to display the image:

[wpv-post-body view_template="display-hospital-profile-pic"]
#2295493

Thank you so much Minesh!!
My issue is resolved now.