FLOE-558: Change category landing pages to use a better method

Metadata

Source
FLOE-558
Type
Improvement
Priority
Major
Status
Open
Resolution
N/A
Assignee
N/A
Reporter
Jonathan Hung
Created
2018-07-10T08:56:48.657-0400
Updated
2018-07-12T15:52:48.848-0400
Versions
N/A
Fixed Versions
N/A
Component
  1. Accessible Wordpress Theme

Description

Currently in the theme, in order to create a landing page for a category, the content author needs to add a custom field "is_landing_page" with the value "true" to a Post and assign it to the category in question.

The sidebar.php would generate the navigation by finding the landing page for the category and then display all the other pages for the category.

This solution mostly works but has a number of issues:

  1. It's not easy to find which Post is a landing page.
  2. It's not easy to find a category's landing page.
  3. It's possible to assign more than 1 landing page for a category - which is problematic.

There should be a better way to create landing pages for categories. Perhaps a custom post type of some sort?