WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. thatwastaxing
    Member
    Posted 2 years ago #

    Hi,

    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.

    Thanks!

    http://wordpress.org/extend/plugins/youtube-profile-field/

  2. Jesper Johansen (jayjdk)
    Member
    Plugin Author

    Posted 2 years ago #

    Hello,

    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)

    http://pastie.org/2349988

    Hope that helps you and sorry for the long reply

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic