• 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('https://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 ?

Viewing 1 replies (of 1 total)
  • Thread Starter chefben

    (@chefben)

    just worked out the solution myself

    <?php echo SimplePieWP (array(
    'https://search.twitter.com/search.atom?q=' . urlencode ( the_title ( '' , '' , false ) ) . ''
    ),array( 'items' => '6' )); ?>
Viewing 1 replies (of 1 total)
  • The topic ‘Inserting Page Title into RSS Feed’ is closed to new replies.