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

How to Show Future Posts x Number of Days From Today in Oxygen

Sridhar Katakam

This members-only tutorial provides the steps to use Oxygen's Advanced Query to output posts scheduled in the future whose publish date is set to a specified number of days from today.

Ex.: Show posts that are scheduled to be published a week (7 days) later.

Step 1

Let's define a custom function that takes the number of days as a parameter and returns the date that is today + the given number.

Add the following snippet using your favorite code snippets plugin:

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