Tutorial - E-mail Support (E-mailing Job Listings to Subscribers)
So after quite a struggle I figure out how to make JobRoller E-mail New Job Postings to a list of subscribers automatically.
- First off Install the Subscribe2 Plugin on your Wordpress: WordPress › Subscribe2 « WordPress Plugins
(I like subscribe2 it allows you to send individual e-mails for each job or Daily Digests)
- Next You will want to Configure Subscribe2 Per the authors instructions. Two ways to have a "Enter your e-mail to subscribe box" on your JobRoller website. The First is to use a short code and plug it into a page, such as the About page. The second is to use a widget it the sidebar. Personally I prefer the widget.
- Once Subscribe to is fully configured it will by default sent e-mails for regular "Posts" but not "Jobs." In order for Subscribe2 to e-mail Jobs as well copy and paste the exact following code into your 'Theme Functions' (Functions.php) file. Be sure to paste the code beneath these lines:
/**
* add any of your custom functions below this section
*/
Here is the Code:
Code:
function my_post_types($types) {
$types[] = 'job_listing';
return $types;
}
add_filter('s2_post_types', 'my_post_types');
- Update File
- Thats It! You're done. However, please note that you will not see a Subscribe2 Dialog in the "New Job" Section like you would in the "New Post" section. However, e-mails will be sent to your subscribers when you post new jobs.
I hope this helps someone!