12% off of LTD using this coupon: TWELVEPERCENTOFF. Promo ends on 2 Dec midnight UTC.
Published on Jun 14, 2022

[Condition] Is Current Category a Parent?

Sridhar Katakam

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 enables you 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.

tagschevron-leftchevron-rightchainangle-rightangle-upangle-downfolder-omagnifiercrossmenuchevron-downarrow-right