CSIS-iLab / reconasia_wp

The WordPress site for Reconnecting Asia.
0 stars 1 forks source link

Exclude some categories from the front end #79

Closed jnschrag closed 3 years ago

jnschrag commented 3 years ago

Maesea let me know that they use some of the categories on the site only for internal purposes, and do not want to list them on the front end. We need to modify reconasia_display_categories to accommodate this.

To do this, it might be worth looking into using wp_list_categories() instead of get_the_category_list(), because it gives you the ability to exclude categories. If you go this route, I would recommend doing it this way:

Related

While we're making edits here, we can get rid of these lines, as the Recon Asia site doesn't have an event custom post type, so this will never evaluate as true.