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); // disable caching
but use instead:
$feed->set_cache_location(‚cache‘); // change to your cache location
$feed->set_cache_duration(259200); // 3 x 24h x 3600sec (3 days)
you just need a writable /cache folder in the root of WordPress and set the cache duration to what ever you like. If it’s working you see as soon simplepie stores files in that folder.
____________________
you find me on Google+, Twitter and Facebook
(von: master)
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 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…
Re: Add a YouTube user channel video to WordPress :: Reply by Joern
16. Feb. 2011 (von: Joern)
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)oryou load the latest clip in a player…
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…