• Is there any RSS plug in or hack that will pass my page title to the feed’s variables?

    Using Yahoo news feed for example:

    news.search.yahoo.com/news/rss?p=my+page+title

    Where “my+page+title” is the title of the WP blog page or post where the plugin is used and it would pass the page title as a varable and display the RSS feed on my page using the actual page title as keywords.

    That would make for displaying relevant and different RSS materials on different pages.

    Thanks for any help offered.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Have you reviewed Customizing_Feeds?

    Thread Starter trman

    (@trman)

    re: Have you reviewed Customizing_Feeds?

    Thank you for you reply but that is not what I am looking for.

    That link has to do with customizing the feed FROM my blog.

    I am looking to display RSS feeds ON my blog pages from other sources and to pass the page title of my blog page to the RSS feeds as a variable or “keywords” to use in retrieving the feed.

    Using Yahoo news feed for example:

    news.search.yahoo.com/news/rss?p=my+page+title

    Here’s an idea. Must be in the loop.

    <?php wp_widget_rss_output( 'https://news.search.yahoo.com/news/rss?p=' . get_the_title(), array('items' => 5, 'show_author' => 1, 'show_date' => 1, 'show_summary' => 1) ); ?>

    1 = true, 0 = false.

    Thread Starter trman

    (@trman)

    Thanks Zeo.

    Now I see that I need to use the content of the meta keywords tag instead of the page title for this.

    Is there a get_the_keywords function that works similar to get_the_title?

    get_the_keywords() function is not part of WP core. So u need to figure it out yourself based on the plugin u using. Probably works if u replace it, or not. Trial and error. Good luck.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Pass page title to RSS’ is closed to new replies.