Connect with us

Wordpress Tips

WordPress Code: How to Schedule Content Visibility in WordPress

When it comes to WordPress, it is no secret that you can get a lot of things done with free and paid plugins. If you know your PHP, MySQL, and CSS, you can always come up with your own custom solutions. When it comes to scheduling content visibility, there are already a bunch of useful plugins available for you to try. Have you ever wanted to schedule only parts of your content to be hidden on certain dates and times. Here is how to get it done.

20+ WordPress Plugins for membership sites

To use this script, you simply have to wrap your content with the schedule shortcode. You can always change that at the bottom of the code to something else. Server’s time is checked with the current_time() function. You don’t have to provide a start or end time for this code. If you choose not to do so, the content will remain visible from start date or to end date.

[more WP tips]

Continue Reading
You may want to check out:
*some of our articles and lists include affiliate links to fund our operations (e.g. Amazon, Elegant Themes, Envato). Please read our disclaimer on how we fund Exxponent.
You may also like...
Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

More in Wordpress Tips

To Top