Exclude parent categories from recent posts list
I was able to find a function that worked found here. First, I added the below code to my functions.php, which excludes the parent categories I do not want: function custom_get_the_category_list() { $categories = get_the_category(); $exclude1 = get_cat_ID( ‘Parent1’ ); $exclude2 = get_cat_ID( ‘Parent2’ ); $categories_list=””; foreach ( $categories as $category ) { if ( … Read more