Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter noktis

    (@noktis)

    I just noticed, it’s not fetcher that’s working as a widget, that’s broken as well. I guess it must be something with the widget. Anyway, is there a way to get the core RSS feed widget to dump out to the main body of a page?

    WP destroys my code all the time.

    Michael Torbert

    (@hallsofmontezuma)

    WordPress Virtuoso

    WordPress will strip out certain tags, like PHP, divs, etc in pages and in posts. http://wordpress.org/extend/plugins/exec-php/ is a great plugin for allowing you to keep your PHP code in posts.

    The following code will dump your rss feed.

    <?php
    $file = fopen(“http://yourdomain.com/rss&#8221;, “r”);
    while ( ! feof($file) ) {
    $text = fgets($file);
    ?>

    Michael Torbert

    (@hallsofmontezuma)

    WordPress Virtuoso

    Sorry, the forum stripped some of my code, although nothing important. But you get the idea. Let me know if this helps.

    forum stripped some of my code

    Use the “code” button… that’s why it is there: highlight your code and click on that freakin’ button!

    Michael Torbert

    (@hallsofmontezuma)

    WordPress Virtuoso

    Thanks Moshu. I realized it after. 🙂
    It only took out my li tags as far as I could tell though, which weren’t vital, just made it look better.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Code Insertion’ is closed to new replies.