Shortcode and get_template_part

Function get_template_part() load file only from theme directory (or child theme). There is no filter or action hook that would change this behavior. You will need to write your own get_template_part() variant to load files from the plugin directory (replace the locate_template() call from the original function). Or write an explicit: $query->the_post(); include plugin_dir_path( __FILE__ … Read more

Trigger WP CRON from a date in a Custom Field?

You will have to write a plugin which creates a daily cron job in the WordPress system. Here’s an article describing how to write a cron plugin: https://wpguru.co.uk/2014/01/how-to-create-a-cron-job-in-wordpress-teach-your-plugin-to-do-something-automatically/ The function (callback) that you trigger in the cron plugin will use WP_QUERY to get a list of all your published custom post types after a certain … Read more