Forums

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

  1. mattbaehr
    Member
    Posted 10 months 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 10 months 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 10 months ago #

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

  4. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 10 months ago #

    Are you using MultiSite?

  5. mattbaehr
    Member
    Posted 10 months 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. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 10 months ago #

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

Reply

You must log in to post.

About this Topic

Tags