Inserting Page Title into RSS Feed (2 posts)

  1. chefben
    Posted 6 years ago #

    We're using SimplePie Plugin to display the contents of a RSS feed on a page from twitter, youtube etc. We are using the Page Title in WordPress as the variable and we simply inserting into the RSS feed.

    the code we are using at present is outputting the word "title" instead of the word we are after which is "Herbs". Here is the example from Flickr.

    <?php echo SimplePieWP('http://api.flickr.com/services/feeds/photos_public.gne?tags=.the_title()&lang=en-us&format=atom', array("items" => 10)); ?>

    Any ideas why it could be not working ?

  2. chefben
    Posted 6 years ago #

    just worked out the solution myself

    <?php echo SimplePieWP (array(
    'http://search.twitter.com/search.atom?q=' . urlencode ( the_title ( '' , '' , false ) ) . ''
    ),array( 'items' => '6' )); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic