WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Basic integration into main website (6 posts)

  1. chimerical_brio
    Member
    Posted 6 years ago #

    I have WordPress installed on my test server, and I'm trying to figure out how to integrate the blog into my main site. I would write a theme from scratch, but it seems overly complex and not quite what I need: all I want is to include the title, date, and text of posts into a PHP page (to function as a "news" section). Is there any way to either integrate the RSS, or to just grab the posts from WordPress, without rewriting my theme? Thanks.

  2. vachi
    Member
    Posted 6 years ago #

    ok so what is your main site built as, is it static pages or php, you can call on wordpress posts individually or you can just have it included, like
    <?php include("thelooppage.php"); ?>
    where teh loop page would be your custom page where you would call on teh posts the way you want,

    ohh thelooppage.php would have to be a direct adress like yoursite.com/wp/wp-content/theme/thelooppage.php

  3. chimerical_brio
    Member
    Posted 6 years ago #

    I'm using PHP. And even when I have a highly minimal theme (it just displays the title, date and contents), I can't figure out how to include the page. I've tried doing something like <?php include("http://localhost/blog/wp-content/themes/custom/index.php"); ?>, and <?php include("http://localhost/blog/index.php"); ?>, but it didn't work. Any ideas on how to just include my entire theme? To include the entire blog?

  4. moshu
    Member
    Posted 6 years ago #

    There are better ways than what you want to do but anyways, if you insist - click on my name and see the Integrate... post in the popular posts list.

  5. chimerical_brio
    Member
    Posted 6 years ago #

    What other ways would you recommend?

  6. chimerical_brio
    Member
    Posted 6 years ago #

    And...well...wow. That worked perfectly. Thanks so much!

Topic Closed

This topic has been closed to new replies.

About this Topic