GOAL Wondering if following should be done, I would like to (ajax?) refresh not necessary only (custom) post type loop or div
example custom post query :
<div class="refreshed posts">
<?php
global $post;
$myposts = get_posts('post_type=employer&numberposts=5&orderby=modified&offset=0');
foreach($myposts as $post) :
setup_postdata($post);
?>
</div>
CONCLUSION
Auto refresh posts can help my website users to see that when for example somebody submits a post type employer entry, at the same moment all online users can see all updated "employer" posts including that one submitted post. I would like to avoid using plugins. In the similar manner uses facebook etc their notifications (I believe they scheduled to refresh in minute intervals)
setInterval()
– gmazzap♦ Jul 29 '13 at 9:41