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