Skip Navigation

[Resolved] Can I use Embedded media Field in Author archive ?

This support ticket is created 2 years, 11 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Karachi (GMT+05:00)

Author
Posts
#2307955

◆ Tell us what you are trying to do?

I added Embedded media to Custom User Field.
And I added this short cord to Author archive(WordPress Archive).

` [types usermeta='sp_youtube_embeded' width='300' height='100' user_is_author='true'][/types]`
` [types usermeta='sp_youtube_embeded' output='raw' user_is_author='true'][/types]`

◆ Is there any documentation that you are following?
I read this documentation.
https://toolset.com/documentation/customizing-sites-using-php/functions/#embedded-media
https://toolset.com/forums/topic/displaying-a-youtube-video/

◆ What is the link to your site?
Could you give me a private ticket?

#2308111

Hi,

Thank you for contacting us and I'd be happy to assist.

To achieve this, you'll need a custom shortcode that can return the user ID of the author whose archive is being viewed. That ID can then be used in the 'user_id' attribute of the user custom field shortcode. You'll find the code example in this support thread:
https://toolset.com/forums/topic/how-to-display-users-custom-fields-on-author-archive/

In case this doesn't work, you're welcome to share temporary admin login details, in reply to this message.

Note: Your next reply will be private and it is recommended to make a complete backup copy, before sharing the access details.

regards,
Waqar

#2308295

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