I am working on a new shop for a customer having an extensive number of pages for content marketing. These are currently just static content. However, we would like to embed dynamic content within the pages. This would be like showing the top-3 most selling in-stock products within a category. Not before or after, but between the paragraphs of the page. The categories will vary from page to page, so the category can't be fixed in a template.
So the page could have a structure like
Dynamic content: 3 currently most selling in-stock product within a specific product category
So most of the page is just plain static stuff, but we would like to embed dynamic content between the paragraphs of the page. Depending on the page, the products will belong to different categories, so we can't just hard-code the category in the template.