WordPress.org

Forums

Display wordpress items in html page (3 posts)

  1. khroma
    Member
    Posted 9 years ago #

    I want to be able to use a design I have and use a php call in a certain area so I can integrate the news into my own website without using wordpress's template.

    Something like: <?php include('news.php'); ?> would be place in a table on my site and the news would display from that call.

    Is there a way to do this?

  2. All you have to do is add the Loop to your pre-existing webpage.

    http://codex.wordpress.org/The_Loop
    http://codex.wordpress.org/The_Loop_in_Action

    For more info, please do a search here for "integrate" or "the loop".

    Here are a few more resources:

    http://www.transycan.net/blogtest/2005/07/05/integrate/

    http://www.jonathanwold.com/tutorials/wordpress_integration/

    http://mattread.com/archives/2005/04/wordpress-is-not-php/

  3. TechGnome
    Moderator
    Posted 9 years ago #

    Yes it is....
    There are two ways....
    The first is to use an RSS feed reader, such as CG-FeedRead (there are at least two others, this just happens to be one that I've used.) and include that on your page where you want the news to appear. The nice thing about CG-FR is that it can be used standalone, it doesn't need to be specifically activated as a plugin.

    The other method is for you to include the necessary files and build your own loop. This give you greater control over the layout, but it will also take longer to set up.

    -tg

Topic Closed

This topic has been closed to new replies.

About this Topic