WordPress.org

Ready to get started?Download WordPress

Forums

Display post titles on page from RSS feed (2 posts)

  1. cheaper
    Member
    Posted 8 years ago #

    Hi All

    Is there a way we can use our rss feed to disply the blog post titles and link on our home page.

    We had this coed forma very noce person here which takes the data from my sql, it wols very wll by the way but is uses the ?p= format for the url and we have urls in the format: http://www.cheaperholidays.com/late-deals/2006/01/24/travel-guides-update/ using htaccess

    <?php
    $SQL = "SELECT ID, post_title FROM wp_posts ORDER BY post_date DESC LIMIT 6";
    $rs = mysql_query($SQL);
    echo "

    ";
    mysql_free_result($rs);
    ?>

    Thanks in Advance

  2. Mark (podz)
    Support Maven
    Posted 8 years ago #

    This plugin will display one or many rss feeds just how you need:
    http://wp-plugins.net/plugin/rssLinkList/

    In your home page, you must have an include to wp-blog-header for that to work. Inside the <head> of the home page - which must be a .php page - put this:
    <?php include ('path/to/wp-blog-header.php'); ?>
    and then the plugin will work.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags