Page scheduled for publication?

[ad_1]

What is the right way in a plugin to determine if a page is scheduled to post in the future versus it being already published? I’m looking to make some tweaks to the NextGEN Gallery plugin to not display galleries in an album that are associated with a page that is scheduled for future publication. Unfortunately, NextGEN doesn’t directly support scheduling galleries like Envira does, so I’m basically looking to implement that myself by leveraging the page integrations it supports. Currently, if the page is scheduled for the future, the gallery thumbnail will be visible in the album view, but trying to open it will throw a 404 until the scheduled publication date/time.

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer