WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How do I share a footer or link list between multiple WP installs (6 posts)

  1. mattbaehr
    Member
    Posted 2 years ago #

    I have a handful of different sites and would like each site to have a list of links in the footer. I don't want to have to change the list in every site each time I edit the list, so I was wondering how I could house a file or link list in 1 spot and have all my installs of WP pull that list.

    Any help would be greatly appreciated.

  2. Sabinou
    Member
    Posted 2 years ago #

    Do you really want a real wordpress solution to this problem ?

    Or else, it would be technically "ugly" but it would work, you could edit your footer.php with a php include ( absolute url of the list of links.txt ), and this text file would contain the list of links with, maybe, stylesheet information if needed.

  3. mattbaehr
    Member
    Posted 2 years ago #

    I am just looking for something that would WORK. Thanks for the idea.

  4. Are you using MultiSite?

  5. mattbaehr
    Member
    Posted 2 years ago #

    No, these are sites on different servers, etc. The include idea was good, but I ran into a problem with it. However, the solution was found here.

    http://blog.everymanhosting.com/php-coding/warning-include-functioninclude-url-file-access-is-disabled-in-the-server-configuration/

    The file_get_contents option worked.

  6. Yeah, that was where I was going if you weren't on multisite ;) You can totally port it in with a get grab :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags