This members-only tutorial shows how to register a custom condition in Oxygen to output elements if the current category archive page has sub/child categories i.e., if it is a parent category.
false
option is going to be added as well so that it is also possible to output elements if the current category archive does not have children i.e., if is not a parent category.
The condition will be made available under the "Archive" category in the Conditions dialog.
Step 1
Install and activate a code snippets plugin like WPCodeBox.
Create a new frontend-only snippet.
Title: [Condition] Is Current Category a Parent?
This is a premium members-only content.
To view the rest of the content, please sign up for membership ($47/month or $599 one-time).
Already a member? Log in below or here.