SitePoint Sponsor

User Tag List

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

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

    Hi,

    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: http://www.imperial-mag.com/blog/ on all the other pages such as the home page: http://www.imperial-mag.com/wordpress/

    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?

    Thanks!!

  2. #2
    SitePoint Wizard rguy84's Avatar
    Join Date
    Sep 2005
    Location
    Durham, NC
    Posts
    1,659
    Mentioned
    5 Post(s)
    Tagged
    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: http://codex.wordpress.org/The_Loop
    Read about making templates: http://codex.wordpress.org/Templates

    HTH
    Ryan B | My Blog | Twitter


Bookmarks

Posting Permissions

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