I'm fairly new to WP dev and I'm trying to work out the best method to include reusable sections/templates within the page content added within the page editor. I have included an image to illustrate what I mean:
The content highlighted in green is added to the page via the editor. What I want to know is, how do I split up those sections with reusable sections/includes. Obviously, I can just added the markup into the page content but I assume there is a much better way of doing it?
I have been reading about shortcodes, is that the best way to approach this? If correct, I guess the best way would be to create template partials (or whatever the correct term is) for each reusable section, then create shortcode functions for them in the functions.php. Then add them to the page content using shortcodes?
Hope this makes sense.