Plugin Directory

Youtube Profile Field

Adds an additional field to the user profile page and allow 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/display - The number of videos you want to show. Ex: [youtube-user count="2"]
  • user/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
  • headingStart - If you want to overwrite the default.
  • headingEnd - If you want to overwrite the default.
  • 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 16:9 aspect ratio.

Here's some video sizes:

  • 480x295
  • 560x340
  • 640x385
  • 853x505

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.3.2
Last Updated: 2012-2-20
Downloads: 4,224

Average Rating

3 stars
(3 ratings)

Support

1 of 1 support threads in the last three weeks have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

2 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