• The restaurant for which I am building an order system has both a lunch and dinner menu. I have sorted the categories so the ‘Lunch’ and ‘Dinner’ are the two main categories, and then each has subcategories.

    Currently, using the [fooditems] shortcode, all categories are being sorted alphabetically. I want to sort the food items listed using [fooditems] so that they follow the parent and subcategory hierarchy.

    For example, I want the Dinner category to appear first, then all of the Dinner subcategories and their fooditems. Then, the Lunch category and all of its subcategories:
    -Dinner
    –Dinner Subcategory
    —[fooditem]
    —[fooditem]
    –Dinner Subcategory
    —[fooditem]

    -Lunch
    –Lunch Subcategory
    —[fooditem]
    —[fooditem]
    etc.

    Also, I want to hide the fooditems from appearing in the main Dinner category as they are being listed in both the Dinner parent category and the Dinner subcategories, even though they are only tagged in the subcategory.

    I have added plugin template files to my child theme to try to manage this, but the changes that I am trying to make are not being reflected on the front end. The plugin is not accepting my custom template files even though they are in the correct file path in my child theme.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Category and subcategory sorting; hiding parent category fooditems’ is closed to new replies.