• I have been posting after posting for the last 3-4 days, no response. I guess it maybe so mundane, that it gets pushed to 2 nd page very soon.

    PLEASE help me out.

    Here is my problem:
    I wish to put several RSS feeds onto one of the page in WP201. For example, feeds from CNN, USAtoday etc.
    How can I do this?

    Please?

Viewing 11 replies - 1 through 11 (of 11 total)
  • drb05:

    Try zFeeder.

    I have not yet used it but plan to try.

    -AP

    Thread Starter drb05

    (@drb05)

    I will be really happy to try it out. Wondering, can i put this code (which calls feed) on a new page through admin panel?
    <? include (‘newsfeeds/zfeeder.php’); ?>

    THe reason, I asking this is for some reason, when I create a new page and put some codes, it disappears.

    I have a page on my blog called “RSS Feeds”. Please look at it. If that is what you want to do, I’ll send you the code I have in that page.

    Thread Starter drb05

    (@drb05)

    Awesome!
    That is what I was looking for. PLEASE send it to my email ID given for this forum.
    I can’t wait to try it out for me.
    Hope it is configurable.

    Oops by the way, why isn’t your rss feed page showing within your WP layout? I mean the sidebar etc is missing. I wish to show mine within the layouts. Hope that is possible too.

    By the way, you got a classic blog site. Very nice.

    drb05 – you don’t have your email address in your member profile. And the script is configurable. You would just replace my feeds with the ones you want.

    Thread Starter drb05

    (@drb05)

    very very sorry. Email is there, but not sure why it isn’t showing.
    Please email me at bizzebee_xp(at)yahoo(dot)com

    Thanks a bunch.

    I’ve been looking for something like that also. Would it be possible to use that on a front page? If you would be so kind to share that script with me I would appreciate it.

    [email protected]

    Thank you!

    Since more than one person was interested, I thought I should post the code here. It’s not a lot of code. If my memory serves me correctly, someone on the forum posted this or referenced it when I was looking about a year ago.

    I just made a Page and pasted the code in. You need a plugin to execute php code in a Post or Page. These are the feeds I use. You would just edit and put your feeds in the $streams array.

    <phpcode>
    <?php
    require_once (ABSPATH . WPINC . '/rss-functions.php');
    //feeds go here
    $streams[] = "https://www.globalissues.org/WhatsNew/WhatsNew.xml";
    $streams[] = "https://www.epha.org/backend.php3?id_rubrique=16";
    $streams[] = "https://rss.news.yahoo.com/rss/topstories";
    $streams[] = "https://feeds.feedburner.com/wxpn";
    $streams[] = "https://dictionary.reference.com/wordoftheday/wotd.rss";
    $streams[] = "https://www.theregister.co.uk/odds/excerpts.rss";
    $streams[] = "https://www.theregister.co.uk/internet/excerpts.rss";
    $streams[] = "https://www.theregister.co.uk/personal/excerpts.rss";
    $streams[] = "https://www.theregister.co.uk/software/excerpts.rss";
    $streams[] = "";
    ?>

    <?php
    $numElements = count($streams);
    for($counter=0;$counter<$numElements;$counter++) {
    $rss = @fetch_rss($streams[$counter]);
    if ( isset($rss->items) && 0 != count($rss->items) ) {
    ?>
    <h3><a href='<?php echo wp_filter_kses($rss->channel['link']); ?>'><?php echo wp_specialchars($rss->channel['title']); ?></a></h3>
    <?php
    $rss->items = array_slice($rss->items, 0, 3);
    foreach ($rss->items as $item ) {
    ?>
    <strong><a href='<?php echo wp_filter_kses($item['link']); ?>'><?php echo wp_specialchars($item['title']); ?></a> <?php echo human_time_diff( strtotime($item['pubdate'], time() ) ); ?> <?php _e('ago'); ?></strong><br /><?php echo $item['description']; ?><br />
    <?php
    }
    }
    }
    ?>
    </phpcode>

    Thread Starter drb05

    (@drb05)

    Hi Jwurster,
    Thanks for the code.

    I have couple of issues. Please help me out.
    1. Is there a way to just show the title alone of feeds?

    2. I got it to work. But when I tried to edit the page I create using admin panel, i could not see <?php> codes at top and bottom and saw only rest of the code. Like below-
    require_once (ABSPATH . WPINC . ‘/rss-functions.php’);
    //feeds go here
    $streams[]…………………
    }
    }
    }
    ?>
    When I clicked HTML button on the edit page, it was more weird. It showed like this-
    <!--p<br-->require_once (ABSPATH . WPINC . '/rss-functions.php');
    //feeds go here
    ..................
    ?>

    <p />
    NOTE:- …….(dots) are rest of the codes in the middle. I did not paste the entire one, But i was able see the codes except for above modification at top and bottom.

    When I added a new URL and saved it, my page went blank. No feeds came up.

    3. Are you referring to this plugin to execute php commands within a page?
    https://www.soeren-weber.net/post/2005/08/18/50/
    I installed and activated it. That’s how my RSS feed was working in the first place.

    The author says it is dangerous to allow execution of such php codes. I am really ignorant on those issues.

    Please let me know.

    thanks,

    drb

    Thread Starter drb05

    (@drb05)

    At last I got it to work. The issue was ‘rich text editor’.
    It was messing up all my php codes.

    everything works fine now.

    However, I am not sure about exec-php plugin that I am using to have this feature.

    With ExecPHP you can use this [?php ?] instead of the normal php tags. Why are you not sure about the plug-in?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Could somebody really help me out?’ is closed to new replies.