• Is there a way I can use WordPress to keep consistent formatting of my information? For example, I have a bunch of names and contact information scattered throughout my website’s content. I would like it so that the name is always in bold, their title in italic, their phone number uses only the extension unless it’s outside the building, then displays the entire number, etc.

    I can go through the site and change these, but I want everyone who edits the content to follow these same strict standards. I would like to do it with more than just names, too, but also places, hour lists, and other information we’ll put frequently throughout our pages.

    Is there a better way to do this, so that we will ALWAYS force title case for people’s titles, and it will ALWAYS be italic, and there will ALWAYS be a phone number’s extension shown unless it’s a different number from the building’s?

    I am thinking there could be like an information box with set fields I can fill in each time I want to put information somewhere (like this is a box for a contact, and this is a box for an address, and this is a box for a warning message, etc.) and it will format automatically. I’ve been in this place when using WordPress multiple times so I’m thinking there must be a practical solution here. And this way later on if we want to change the rules for formatting, we can just change the box’s instructions.

    Thanks,
    M

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    >> I am thinking there could be like an information box with set fields I can fill in each time I want to put information somewhere <<

    I do that with Advanced Custom Fields. I set up an options page for the common things like email, address, etc. and then create shortcodes that users can use to drop in these values anyplace they like. My template also uses the values in the header, footer, etc.

    In order to assure formatting, I output the values inside a <span>, assigning an appropriate class.

    Thread Starter multimediocrity

    (@multimediocrity)

    I remember trying that a couple years ago. I didn’t think it quite did what I needed it to do, since it seemed like I could set values per page instead of per site. Thanks! I’ll give this another try and explore a little deeper.

    Do you know of a tutorial or something which demonstrates the way you’re using it?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Thread Starter multimediocrity

    (@multimediocrity)

    Wow, thanks!! That was all VERY helpful!

    Does this work globally across WP Multisite? Can I set a value and use it in my subdomains too? I can research that, but it just came to me so I thought I’d ask.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Creating Formatted Information Boxes?’ is closed to new replies.