What is the best way of inserting information onto a page, that will need to be updated?

Question

I am creating a custom theme.
On one page there is a menu with multiple menus you can access via an anchor, without leaving the page.

e.g. Breakfast, Lunch and Dinner

Currently in order to display information for each menu. I create 3 different posts under the category “menu” and then the user of the site inserts “the content” on each post.

Is this the best way of doing this ?
i.e.

<?php
   wordpress loop query category{
       display content from post 
   }
?>

or are there better ways, e.g. by adding customisation to a theme.

0
Ryan Hinchliffe 3 months 0 Answers 48 views 0

Leave an answer