public function __construct() { $this->get_links('page_1'); //get job post links - on page 1 $this->clean_links(); //clean page 1 urls $this->get_links('page_2'); //get job post links - on page 2 $this->get_links('page_3'); //get job post links - on page 3 $links = parent::merge_links($this->post_links); //$num_post = count($links); $num_post = 7; for ($i = 0; $i < $num_post; $i++) { $this->process_post($links[$i]); $this->post_count++; } }