SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Mar 2008
    0 Post(s)
    0 Thread(s)

    Question Wordpress - Call in sidebar from another blog within site?


    I have multiple installations of wordpress installed since every link is going to be in blog format.

    I would like to set it up where I can use the sidebar from this page: on all the other pages such as the home page:

    I went into the home's sidebar.php file and added the following code:
    PHP Code:
    <?php require('/home/content/i/m/p/imperialmag/html/blog/wp-content/themes/Imperial_NEW/sidebar.php'); ?>
    This did not work. It pulled in the most recent posts, etc. from the current install. I want it to pull it in from the "blog page" install.

    Any suggestions?


  2. #2
    SitePoint Wizard rguy84's Avatar
    Join Date
    Sep 2005
    Durham, NC
    5 Post(s)
    0 Thread(s)
    I would make the whole site wordpress, versus multiple copies...
    Then just make new templates for each subsection.

    Here's an example: say this site has 3 areas- news,editors stories, and fashion. Right now I am guessing you have a wordpress installed for each section.. Go into your themes folder make a file named like news.php and in the loop only get posts that are in the news category. Then make a new page and choose your news template.

    Read about The Loop:
    Read about making templates:

    Ryan B | My Blog | Twitter


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts