WordPress.org

Ready to get started?Download WordPress

Forums

Custom field in flickr-rss plugin (1 post)

  1. 2bak860
    Member
    Posted 4 years ago #

    Hi,

    I'm using the Flickr-rss plugin to show a set from a user's account. What I want to do is select the set number from a custom field - but my php ain't too sharp!

    So I'd like to turn this:
    <?php get_flickrRSS(array('set' => '72157601681097311', 'num_items' => 6, 'type' => 'set', 'id' => '44124462494@N01')); ?>

    to something like this ($key) (this doesn't work):

    <?php if (get_post_meta($post->ID, 'flickr_gallery', true)) { ?>
    <?php get_flickrRSS(array('set' => $key, 'num_items' => 6, 'type' => 'set', 'id' => '44124462494@N01')); ?>
    <?php } else { ?><?php } ?>

    Any ideas much appreciate - thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic