How do I include wordpress in a website? (PHP include maybe?, no iFrames...) (9 posts)

  1. zeons
    Posted 7 years ago #

    Hello everyone!
    I'm starting a new website, and besides keeping my wordpress.com blog, I installed wordpress on the new server, so as to use it for managing the news content of the new website.
    What I want to do is include the wordpress blog's content in the website without using iFrames. I was thinking about using a PHP include, but I do not know the route or address I should be pointing to to make the content display on the site.

    Here's a clear example of what I'm attempting to do:

    This website: http://www.redvanpictures.com has news that are displayed on the main site, and they come directly from their wordpress blog, located at: http://www.redvanpictures.com/blog/
    This is practically the same thing I want to do, so that I can post news using wordpress, and make them appear in a section of my site without having to redirect visitors to the blog or using iFrames.
    I've been looking like crazy for help on how to do this on the web and with friends, but nobody seems to know. I even saw the source code of the example site, but didn't find the answer.
    I'm really looking for help, can anybody tell me how do you do this??? It will be greatly appreciated.

    Thanks in advance...

  2. buddha trance
    Posted 7 years ago #

  3. zeons
    Posted 7 years ago #

    Thanks a lot for those links, I have been able to include the content now, but if I click the post's title (link to the post's permalink), it takes me to the wordpress blog, and it does not load the post's content in the same (external from wordpress) page. How do you do it?

  4. buddha trance
    Posted 7 years ago #

    The site you mention as an example, redvanpictures, does the same.
    If you click on a permalink, it will take you to the /blog URL.

    To have it load in the same front page, you will probably need an iframe.

  5. zeons
    Posted 7 years ago #

    Yeah, but when you click any of the RedVanPictures, it takes you to the blog entry in the same website, and the whole layout doesn't change from their website layout to the wordpress one. That is definitely not an iframe. How do you do it?

  6. buddha trance
    Posted 7 years ago #

    Their posts don't load in the same front page, as you mention.
    They are directed to a blog URL, maybe you meant just that the page looked the same in layout?

    Looking at their source code, it seems like they are just using WordPress, rather than integrating into an existing site. They have most likely created a static front page incorporating the loop in the template.

    Maybe this reference can help you

  7. zeons
    Posted 7 years ago #

    Yeah, you're right. What I meant is that the blog entries you access when clicking one of RedVanPictures' permalinks takes you to the blog entry, but in the same layout...How do you do it?

    I have actually tried to do the same, but I can't get it right. What happens with my site is that I DO manage to make some blog posts show up, but when I click the link to them (the permalink to a blog post), it takes me to the blog's wordpress layout, look:


    Try clicking "Read More..." and see what happens.
    How do I do it like in RedVanPictures? What am I missing?

  8. buddha trance
    Posted 7 years ago #

    What I would do, is modify the theme that WordPress is using, to match your existing design.

    Use the same css properties for body, container, and what you have in common with your original style sheet. Then adapt the rest to match.

    You can either work straight from the Default theme, which you are using now on WP, or look for a theme that gets the closest to what you have, in the theme directory, and adapt it.


    The Default theme is a good place to start.

  9. vinnikiniki
    Posted 6 years ago #

    I have a simillar problem i hope i am posting in the right place.
    Basically i have included wordpress in an iframe on the html page
    I would like to make sure that whenever someone views my blog they see it within the mock windows shell.
    I am worried that if someone searches in google they will be able to see the site bear bones i.e. http://www.vinnikiniki.com/blog/index.php
    how can i work around this? Any ideas?

Topic Closed

This topic has been closed to new replies.

About this Topic