Published on Jan 16, 2020

[Condition] Post ID in Array

Sridhar Katakam

This members-only tutorial provides the steps to register a custom condition using which elements on single post (of any post type) pages in Oxygen can be output only if the current post's ID is in the array of supplied IDs.

Note: You can also use multiple built-in Post ID conditions (with OR) instead.

Step 1

Install and activate Code Snippets plugin.

Go to Snippets > Add New.

Title: Post ID in Array

Code:

This is a premium members-only content.

To view the rest of the content, please sign up for membership ($47/month or $499 one-time).

Already a member? Log in below or here.

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