Im trying to figure out howto structure general content that should be easy to import in a page template.
Lets say for example i have some contact details and i want to include this content on multiple pages. One way i tried was to create a custom post type and just add posts for
I would then simply read the ID's of those posts and in my template hardcode the ID's into some get_post() calls, to extract the content.
The problem with this approach is
- im hardcoding ID
- lets say my Address needs different input fields like "Street" / "City" "Zipcode". Then i would need to create multiple custom post types, because i cant just add it to the same because it would make no sense for a email to have a zipcode field. I hope to get some pointers to how i would structure content like this. I guess i could write a custom plugin, but then i would miss out on all those features post's has like a rich text field and gallery support, and the support for adding more fields etc.