WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Youtube Profile Field

Adds an additional field to the user profile page and allows you to show your videos on your website.

How do I use the shortcode?

The shortcode is: [youtube-user]

You can use these parameters:

  • count - The number of videos you want to show. Ex: [youtube-user count="2"]
  • user_id - The ID of the user you want to show videos from. Default is the post author. Ex: [youtube-user user="3"]
  • width - If you want a different width than the default
  • height - If you want a different height than the default. If you leave it empty, the plugin will calculate a height using the width
  • ID - If you want to show a specific video you can use this. You shouldn't use this since WordPress now supports oEmbed.

How do I use the template tag?

The template tag is

if ( function_exists( 'ypf_show_video' ) ) {
    echo ypf_show_video();
}

It accepts an array of parameters.

You can use these parameters:

  • count - The number of videos you want to show. You can use 'all' to show all that the Youtube RSS contains
  • user_id - The ID of the user you want to show videos from. Default is the post author.
  • width - If you want a different width than the default
  • height - If you want a different height than the default. If you leave it empty, the plugin will calculate a height using the width
  • headingStart - If you want to overwrite the default.
  • headingEnd - If you want to overwrite the default.

Example:

if ( function_exists( 'ypf_show_video' ) ) {
    echo ypf_show_video( array( 'count' => 2, 'user_id' => 2 ) ); // 2 videos from user ID 2
}

The video size is strange - What's wrong?

If you don't enter video sizes in the plugin options, it will use the width from 'Media' and calculate the height using the 4:3 aspect ratio.

After upgrading to 2.0.2 my videos won't show anymore - What's wrong?

In 2.0.2 has the show_video() function been renamed to ypf_show_video() to prevent possible conflicts with other plugins/themes.

if ( function_exists( 'ypf_show_video' ) ) {
    echo ypf_show_video();
}

Requires: 3.1 or higher
Compatible up to: 3.9
Last Updated: 2014-4-16
Downloads: 7,032

Ratings

3 stars
3.7 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1
100,1,1
100,1,1
100,1,1
100,2,2
100,1,1
100,1,1
100,1,1
100,1,1