mattbaehr
Member
Posted 1 year 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.
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.
mattbaehr
Member
Posted 1 year ago #
I am just looking for something that would WORK. Thanks for the idea.
mattbaehr
Member
Posted 1 year 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.
Yeah, that was where I was going if you weren't on multisite ;) You can totally port it in with a get grab :)