WordPress Set A Static Page/Template For All Sub-Pages

Okay so I have resolved this by combining several different wordpress functionalities: Catches the template include conditionally add_filter( ‘template_include’, ‘…’ );, in my case based on a regex match of the expected URI pattern locate_template(‘example-template.php’) to then resolve my (essentially) static template A query within my example-template.php that externally retrieves the resource This must handle … Read more

How to execute add_action() function from custom plugin to Crontrol plugin or do_action()?

I didn’t call the class yet, this code is now working class Scheduler { public $setup; public static $instance; public function __construct() { self::$instance =& $this; add_action(‘scheduler’, [$this, ‘etf_scheduler_func’]); } public function etf_scheduler_func() { $this->setup = new Setup(); $this->setup->set_table(); } public static function &get_instance() { if ( ! isset( self::$instance ) ) self::$instance = new … Read more

Custom query_posts() parameter

If you have your data in separate table adding support for it in query is somewhat messy. Basically you will need to filter posts_where and posts_join to modify raw SQL query so that your custom table is joined and checked against your custom values. As per [faster :)] anu’s suggestion it would make sense to … Read more