0

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.

  • Custom post type is absolutely fine. – Max Yudin Apr 20 '18 at 6:58
1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.