This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.



This plugin allows you to easily display Youthmedia photos on your site. It supports user-, friends- and recent-pictures. The plugin is easy to setup and configure via an options panel. It also has support for an image cache located on your server. This plugin requires at least PHP5 for stability and security reasons.


The plugin also supports a number of parameters, allowing you to have multiple instances across your site.

  1. $platform – platform you are using (,,, …)
  2. $user – specify a login-name
  3. $type – user, friends, recent
  4. $num_items – number of items to display
  5. $before_image – html appearing before each photo
  6. $after_image – html appearing after each photo
  7. $pool – specify pool if you use type = pool (not supported at the moment!)

Example 1

<?php get_youthmedia("", YOUR-LOGIN, "user", 5); ?>

This would return 5 pictures from the author at

Example 2

<?php get_youthmedia("", YOUR-LOGIN, "friends", 10); ?>

This would show the 10 most recent pictures from the friends of the user with ID 1 at

Example 3

<?php get_youthmedia("", YOUR-LOGIN, "pool", 5, "", "", 1); ?>

This would show the 5 most recent pictures from contest with number 1 at

Example 4

<?php get_youthmedia("", "", "recent", 10, "<span class=\"image\">", "</span>"); ?>

This would show the most recent 10 pictures from, each picture wrapped with picture

Full option support

<?php get_youthmedia(get_option('youthmedia_platform'), get_option('youthmedia_username'), get_option('youthmedia_display_type'), get_option('youthmedia_display_numitems'), get_option('youthmedia_before'), get_option('youthmedia_after')); ?>

If you have a theme which doesn’t support widget, you can use this snippet of code to control the youthmedia-plugin from your admin page like it’s done with the widgets.

Feedback and Support

Visit the blog for help getting the plugin working. Use the comments.

Plugin History

Latest Release: June 3, 2010

  • 0.1.4 – Changed from youthphotos-rss to youthmedia
  • 0.1.3 – Added default CSS
    – Added ‘Full option support’ to readme.txt
  • 0.1.2 – Fixed problem with PHP4, UTF-8 and MagpieRSS
    – Fixed wrong handling of variables when using the functions
  • 0.1.1 – Added default settings
  • 0.1.0 – Initial release


  • Screenshots, Screencast
  • Example at blog


Thanks to Dave Kellam from Eightface for his flickrrss plugin. This plugin is based on it.


  1. Put youthmedia.php in your plugins directory
  2. If you want to cache images, create a directory and make it writable
  3. Activate the plugin
  4. Configure your settings via the panel in the Settings panel
  5. Add the plugin via the widget management or add <?php get_youthmedia(); ?> somewhere in your templates

If your theme doesn’t support widgets use the snippets provided at Other notes


Can I get random images from my stream?

No, it’s a limitation of using the RSS feed (it only contains the most recent photos)

How do I refresh the photos manually?

The plugin uses built-in WordPress functions to update the feed. You can reload with STRG + SHIFT + R in our browser. This forces deletion of every cache.

When I enable cache, why do just a bunch of random characters show up?

You’ve probably specified the full path wrong. Double check with your host to make sure you’ve got it right.

Why aren’t any photos showing up?

Sometimes it can take a little while to kick in, have patience. Youthmedia may possibly have been down. Also, make sure it works without the cache first.

How can I user my own style

There is a special CSS file (youthmedia.css) in the youthmedia-plugin folder. Read and edit it. We can’t give support on this.

How do a I get borders between photos?

You need to edit your CSS file. There are plenty of tutorials online, you may find an example in our blog.

Contributors & Developers

“youthmedia” is open source software. The following people have contributed to this plugin.

Translate “youthmedia” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.