• tjobbe

    (@tjobbe)


    Hi everyone.

    I am creating a template for a brand, which has multiple web sites that all follow the same theme, but will have unique content.

    However, each web site will have their own phone number, address, Google map location, and few other details, which will appear on the site in numerous locations.

    Is there a way to add fields within the dashboard / admin section of WordPress where I can enter these details once, like a plugin, and then have the data from these fields display in the template by something like a template tag?

    I am fairly junior to php, so creating a plugin may be too much for me, so the more specific your answer, the better really!

    Thanks in advance!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Kathryn Presner

    (@zoonini)

    Would a multisite install possibly work for this? I’m not very versed in multisite capabilities myself, but you might want to do some initial research and post again in the Multisite forum if you have questions – we have a few awesome multisite gurus here.

    http://codex.wordpress.org/Create_A_Network

    transom

    (@transom)

    It depends on how you expect to “address” each brand. As zoonini notes, using a multi-site installation would be a way to go. Each brand shares the same theme (layout) but with their own content.

    During the setup for the site, you’d decide how the site will work. Either as brand1.domain.com or domain.com/brand1. You would be able to limit which brands any user could manage. You can share plugins but each site can then be branded independently but follow the same layout.

    Thread Starter tjobbe

    (@tjobbe)

    Thanks guys.

    To explain further, there is a main brand and each site is dedicated to an area in the UK, so they will have their own news and location specific content.

    Rather than add the phone number, address and other site-specific detail several times I’d rather just have a wordpress style template tag, eg <?php echo="phoneNumber" ?> that I populate just once for each site.

    Each site would use a similar template, but have it’s own domain name. All I’d do is add their specific data via the dashboard, for instance.

    For this reason, it’s not whether I use multi-site, but what can I use to enter these bits once, and then call on them multiple times?

    transom

    (@transom)

    You can accomplish that with either text widgets or your theme design allows you to set common code fragments.

    Thread Starter tjobbe

    (@tjobbe)

    Thanks Transon, I don’t think text widgets is the way to go as the whole idea is to have the phone number apear on several different pages, in different places, and I don’t really want to do this one-by-one, if there is a simple way to add it once, and then have tags within the template that then echo the phone number, I’d be a lot happier!

    What are common code fragments and how would I use them?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Templating WordPress for a brand’ is closed to new replies.