Latest Jobs
-
‘latest-jobs’,
-
Admit Card
‘posts_per_page’ => 10
));
while($query->have_posts()) : $query->the_post(); ?>
‘New Job Update ‘ . date(‘Y-m-d H:i:s’),
‘post_content’ => ‘This is auto generated job update.’,
‘post_status’ => ‘publish’,
‘post_author’ => 1,
‘post_category’=> array(get_cat_ID(‘Latest Jobs’))
);
wp_insert_post($post_data);
}
if (!wp_next_scheduled(‘auto_post_event’)) {
wp_schedule_event(time(), ‘hourly’, ‘auto_post_event’);
}
add_action(‘auto_post_event’, ‘auto_post_sarkari_updates’);
?>
1. Create Categories:
– Latest Jobs
– Admit Card
– Results
2. Set Homepage:
Settings → Reading → Static Page → Select this template
3. Paste CSS in style.css OR keep inline
4. Add Auto Post Code in functions.php
5. Use plugins for RSS auto import (optional):
– WP Automatic
– WP RSS Aggregator
–>
