Above in this thread you get your user-channel feed from YouTube as feed. Either you display 4 stills linking to the video in youtube (this changes if you add something to your channel)
or
you load the latest clip in a player as alternative. In this second choice with the player you could load more clips than one, to be set in this line:
php if ($success): foreach ($feed->get_items(0, 1) as $item)
get_items(0, 1) reads get from the first item (0) just one clip (1)
you might try get_items(0, 4) to get 4 latest clips and or change the player size from ‚300‘,’250′ to any other size you like
That’s about your user channel feed.
In the new post I use a very different way, taking any video of anyone from your latest post in the category you choose.
That is explained here:
viewtopic.php?f=1&t=235
____________________
you find me on Google+, Twitter and Facebook
(von: Joern)
Hier noch 11 weitere Ergebnisse dieses Threads:
Add a YouTube user channel video to WordPress
23. Mrz. 2010 (von: master)
Any idea how to use the WordPress sidebar for streaming Youtube videos?It should update automatically with the latest video from my youtube channel and be automatically resized to fit a box of 300x250px.Here is how to do this for Youtube…
Re: Add a YouTube user channel video to WordPress :: Reply by greenbandit
9. Feb. 2011 (von: greenbandit)
great post, any idea to use curl instead of simplepie? Weiterlesen →
Re: Add a YouTube user channel video to WordPress :: Reply by master
9. Feb. 2011 (von: master)
Sorry, I never used cURL yet.As simplepie is in WordPress already and is useful for many other functions to grab feeds, I use it as is.What I do is actually not disable the caching function, eg do not use:$feed->enable_cache(false); //…
Re: Add a YouTube user channel video to WordPress :: Reply by greenbandit
9. Feb. 2011 (von: greenbandit)
hi, and thanks for a fast answer!I've reading this: http://simplepie.org/wiki/reference/sim ... _fsockopenThanks. Weiterlesen →
Re: Add a YouTube user channel video to WordPress :: Reply by raf_79
14. Feb. 2011 (von: raf_79)
This is great! I got it to work without a problem following your instructions. What changes do I need to make to the code to make this work in a sidebar widget so I can control the pages it shows…
Re: Add a YouTube user channel video to WordPress :: Reply by master
14. Feb. 2011 (von: master)
I use it here (link deleted)This is not in a widget though, it just shows the embeded video of the latest posts of a category. It's totally different from the code above, does not need simplepie as you post it…
Re: Add a YouTube user channel video to WordPress :: Reply by raf_79
15. Feb. 2011 (von: raf_79)
Yes, please. I await your response - but not today. Weiterlesen →
Re: Add a YouTube user channel video to WordPress :: Reply by Joern
15. Feb. 2011 (von: Joern)
I opened a new topic thread for that: add latest video from a post in WordPress sidebarother ways to get video code from WordPress post or resize a video hereget the oembed code of a video in a WP 2.9…
Re: Add a YouTube user channel video to WordPress :: Reply by raf_79
16. Feb. 2011 (von: raf_79)
Thank you for the coding to add the latest video from a WP post on your site into a sidebar widget. This information will be very useful for me. I'd like to ask, and pray I don't offend you, does…
The e-mail/username information submitted could not be found
2. Jun. 2013 (von: master)
After migrating from bbPress to phpBB3 I realized that formerly 'registerd users' had to retrieve their password by using 'I forgot my password' and entering their user name and the e-mail adress they used before.This is something I can live…
Re: Add a YouTube user channel video to WordPress :: Reply by Joern
8. Mai. 2015 (von: Joern)
as of may 2015 youtube changed their api and the stuff above doesn't work anymore!!Some user may think: Wordpress update to 4.2.2 broke a plugin used to link to a YouTube channel.In this thread we used the rss feed of…