I want to store content like an address block or opening times, that will be displayed at different locations across the site. The website owner should be able to edit this content. What's the best way of storing these snippets of content? I could use a page for it, or create a custom post type, but that doesn't feel right.
1 Answer
You can use the Settings API to create a settings page where the admin can enter the address, opening times or whatever is needed. The same can be accomplished by using the Customizer.