Youtube Profile Field
Specific video in profile/author page (2 posts)

  1. thatwastaxing
    Posted 5 years ago #


    Can I use this to allow my users to specify which video to show on the author.php page?

    I see that I can do this via shortcode but I'd like my users to be able to select which video to show (I am only allowing 1) instead of the latest video they uploaded to Youtube.



  2. Jesper Johansen (jayjdk)
    Plugin Author

    Posted 5 years ago #


    I've tried to customize the script to fit your needs:

    Your theme author.php (this might work - it based on your theme - I can take a look at your theme if it doesn't)

    if ( function_exists('ypf_show_video') )
        echo do_shortcode( '[youtube-user id="' . get_user_meta( get_the_author_meta( 'ID' ), 'ypf_video', true ). '"]' );

    It will add a text field to the user profile: http://i.imgur.com/prvhq.png

    Here's the code you should add to the plugin index.php (you have to add it again if you update the plugin)


    Hope that helps you and sorry for the long reply

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Youtube Profile Field
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic