Thread Starter
phil_b
(@phil_b)
Hey there,
Yea, so my post type is ‘job’ and I made the following changes:
——
in file:
wp-plugins/subscribe-to-category/classes/class-subscribe.php
line 842 had this:
$args = array(
‘post_type’ => ‘post’,
‘post_status’ => ‘publish’,
‘numberposts’ => -1,
‘meta_key’ => $meta_key,
‘meta_value’ => $meta_value
);
I changed the post_type to ‘job’, i.e ‘post_type’ => ‘post’,
—–
line 253 had this:
if( isset( $_POST[‘post_type’] ) && $_POST[‘post_type’] != ‘post’ )
I changed the post_type to ‘job’, i.e $_POST[‘post_type’] != ‘job’,
——
I think that was it. Now whenever a job is added in admin then the plugin is used for that.
Just back up the file and change to match your post type.
Thread Starter
phil_b
(@phil_b)
Hi esmi,
I’ve fixed my problem. I had a bad setting in my functions file which was messing up the homepage.
The reset function you mentioned helped with something else though!