• Is it possible to use php includes to gather up entries from two different blogs on one page?

    What I would like to do would be to have a separate photoblog (a kind of a photo-for-a-day-diary with a photo and short notices about weather etc…) and a “real” blog which would contain the main content. i would like to retrieve a random/recent thumbnail with an excerpt from the photoblog to the sidebar of the main blog and vice versa – an exceprt from the main content to the sidebar of the photoblog.

    I’m not a coder, but I can hack-and-try the solutions more experienced coders have done. Has anybody tried to experience with php to draw content from different wpblogs on a single page?

Viewing 3 replies - 1 through 3 (of 3 total)
  • I tried using a php include so that my wife’s blog and my blog could show up on the same page. The problem is the CSS. Since we both modified the css and xhtml based on the wp-layout.css tags etc. The page shows up as a poor blending of the two.

    Mind you I’m php ignorant so all I did was throw a php include ‘mywifesblog.com’ to call my wife’s blog up into mine. Changing the CSS filenames to separate doesn’t fix it. So I’m guessing I have the option of going into one of the index.php files and renaming a lot of tags..but I think at some point I may run into wp unique elements that cannot be changed without altering admin files too.

    Any easy php suggestions

    Well nothing brilliant here but I decided to just call the wp.php file from my wifes blog to my index.php page using a php include. I then had to adjust add about 4 css selectors specific to the xhtml ‘grabbed’ by the include.

    If your at all interested here is the code:

    <?php include ('https://yoursite.com/other directory/wp.php'); ?>

    It can be viewed temporarily at https://www.muirheadkingdom.com/blogs/nathan

    The second blog is just tacked on at the bottom. I only made efforts to align, adjust fontsize, listdisplay & background. The rest cascaded from my stylesheet.

    You can click on my wifes tacked on blog title to link to her actual blog location.

    Nice idea! There are some real problems in Opera 7.x. Both blogs start at the top; one seems to be cutting into the other, and the left-hand menu is under the posts.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Two (or more) blogs on one page’ is closed to new replies.