Basically you have three parameters here:
- Current server time
- Schedule start time
- Schedule end time
Then your task boils down to using custom field parameters in query to request posts with two conditions:
- schedule start hour is smaller than current hour
- schedule end hour is larger than current hour
Related Posts:
- How to properly insert data into custom table via plugin
- Searching users with WP_List_Table plugin
- How to write one comment and publish on every post using database or plugin?
- How to get number of Affected rows from wordpress dbDelta() function
- Display data on Word Press site posts and pages from mysql table
- How to simultaneously access the same MySQL database in the main column and sidebar of WordPress?
- WpDataTables – View Image Directory
- 306 MB of wp_options occupied by WordPress SEO Plugin, is that normal? [closed]
- Server configuration for WordPress – Do I need install PHP-SSH extensions for WordPress on Fedora28?
- pagination on data fetched using SQL query
- Notice: Uninitialized string offset: 0 in social sharing mu-plugin
- Using ‘mysqli_connect’ ‘crashes’ WordPress client-side
- How can I fetch data from another website to my wordpress website with mysql database
- speed up pagination for huge database
- Way to send multiple values for column to MySQL?
- How to display results from a data table with an encrypted user id?
- Plugin error after installation
- add_action for publish_post doesn’t work
- WordPress Cache delete on plugin uninstall
- need to find duplicated meta value in custom filed and view the posts that have the same value
- Getting current user data with MySQL statement
- How to get the custom field value using SQL query
- WP Function does not trigger on Webhook API Call
- Cant create table on plugin activation
- How to get database connection details without longing to cpanel in WordPress?
- the content of the uploads folder gets deleted periodically, how to figure out what causes it?
- Moving a few select DB tables to a new WP instance
- How much PHP and MySQL or MariaDB knowledge should I know to start writing WordPress themes and plug-ins and whatever else a beginner can edit?
- get/show Last ID
- W3 Total Cache Can’t Really Detect Things
- MySql Query for WordPress
- how to search through plugin in wordpress cimy-user-extra-fields?
- True or False: Is an Apache error or PHP error the same as a WordPress error?
- PHP Creating a formula from mysql db values and db stored math operator
- Split Million WordPress Post’s Into Multiple Database Server
- Getting 504 Gateway Timeout Error on AWS Server! [closed]
- WordPress issue – data is not showing in wp-admin, but when searching through database, all the data is there
- How to remove index.php from WordPress site URL
- What are the differences between WPINC and ABSPATH?
- How do I call wp_get_current_user() in a plugin when plugins are loaded before pluggable.php?
- How to make simply “report” button on posts
- Get php var inside javascript file (making plugin)
- Find out what is using PHP sessions in WordPress
- Bug in Stackoverflow styled badge system script
- Change destination author link
- How can I include PHP-Code to my post?
- how to display all posts Custom fields dynamically?
- Seriously stuck with some custom meta box/plugin stuff
- explanation for activate_plugin function in wordpress core
- WordPress PHP plugin – Settings page error
- Get product attribute for Simple product in WooCommerce
- Creating an Exit Confirmation Popup
- Uncaught Error: Call to undefined function get_user_by() after moving function from theme to plugin
- Display a text message if the field is not found and not if found
- Reposition Woocommerce Message
- Scope for PHP Variables Assigned in functions.php or a plugin
- Add a plugin before main container
- Shortcode to generate and save password in a file
- I don’t understand how this parameter works..?
- problems with wordpress and php version 5.3.3-1
- Prevent a plugin from being automatically activated
- WordPress Redirect Not Working – AJAX Callback Response Not Picked Up
- WordPress takes too much time (100 seconds) to load – Front end and back end
- Saving changes in wp_editor
- Output array into one table cell
- how to change the verification url of pie register plugin of wordpress?
- wordpress plugin is not activating from widget
- Using meta_query to get date type values from post_meta table WordPress
- Creating a custom post type, adding custom meta fields, preventing all future editability of posts of this type
- wp_get_post_terms is difference obj model than the one in rest api response
- How to fetch products with the price in a page on woocommerce using a form or live search with php
- Creating a Callback URL for WordPress Woocommerce to update Order Status
- Using plugin functions/methods within templates
- WordPress shows error related to allow_url_fopen
- Delete mobile menu button [closed]
- How to replace WordPress Media Upload Window with user’s device window?
- Automatic switch to backup database on fail
- Using color picker in plugin, does input attribute order matter?
- How to Create a shortcode to this php function
- Check if variable is set in filter
- Access a particular field in an array
- JQuery prepend a function
- I am trying to make a field show and save from quickedit screen
- Add the_post_thumbnail_url to a shortcode in function.php
- WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version [closed]
- Adding a Tag Parameter / Filter to My Shortcode
- can’t unzip file
- WordPress jQuery Post – Amending Variable Value Within Function Command
- how to display recent post by category on home page
- Change plugin descriptions
- Showing how many times is plugin activated or deactivated
- Form tries to download a file on submit
- Trending Tags based on post views
- Edit Buddypress Groups Activity Page Text [closed]
- how to add “alt” for all image in wordpress
- How to display blog posts only authored by the administrator
- how to show the data from a myqsl database in a post [closed]
- Posts in Admin only display 1 Post instead of all Post in admin area
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- plugin doesn’t retrieve data from database