This members-only tutorial provides the steps to display Lessons (Custom Post Type) grouped by Lesson Categories (Custom Taxonomy) with Font Awesome icons via Advanced Custom Fields for the entries in Oxygen.
Add your CPT and custom taxonomy using a plugin like Custom Post Type UI.
In this example, we are using lesson CPT and lesson_category custom taxonomy.
Install and activate ACF or ACF Pro.
Install and activate Advanced Custom Fields: Font Awesome plugin.
Add a new field group called say "Lesson Meta" having a lesson_icon custom field of the type, "Font Awesome Icon".
Leave the Return Value as Icon Element.
Set Enqueue FontAwesome? to Yes if you are not already loading Font Awesome (the version that is set at FontAwesome Settings) on the front end.
Make any other adjustments like selecting a default icon as needed.
Set the field group to appear for Lesson Post Type.
Add/edit your Lessons, assign them to one or more lesson categories and set your desired icon for each.
Edit your Page/Template where you would like to display the lessons grouped by their categories with Oxygen.
Add a Code Block.
PHP & HTML:
This is a premium members-only content.
To view the rest of the content, please sign up for membership ($47/month or $399 one-time).
Already a member? Log in below or here.
Enter your email address to subscribe to this blog and receive notifications of new tutorials by email.
Join 581 other subscribers