use a framework such as https://github.com/WebDevStudios/CMB2 or build your own using a tutorial such as https://premium.wpmudev.org/blog/creating-meta-boxes/
Post meta allow you to add custom content boxes (like featured post feature etc) on pages / posts or custom post types which you can then use on the frontend or in theme files.