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.

1
  • Custom post type is absolutely fine.
    – Max Yudin
    Commented Apr 20, 2018 at 6:58

1 Answer 1

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 and acknowledge you have read our privacy policy.

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