NooTheme Premium WordPress Theme › Forums › JobMonster › Job views – urgent question!
- This topic has 3 replies, 2 voices, and was last updated 3 years, 1 month ago by dangdv.
-
AuthorPosts
-
3 years, 2 months ago #1211570
Hi,
Is there a way to see how many time a job has been viewed in the backend of the jobs board website?
I know if you are an employer you can see the amount views for a job post on the member dashboard.
But my clients wants to be able to view the number of views job posts receive via the backend of the site, in order to do follow up customer service calls with employers. To offer extra help with recruiting.
Is there a way to see this in the backend of the site?
Thank you
3 years, 2 months ago #1211618Dear, the default Jobmonster not support display view count on admin panel. If you want display it on admin Job list, Please install and switch your site to use Jobmonster Child Theme. Then add custom PHP code to file functions.php of Jobmonster Child Theme.
add_filter( 'manage_edit-noo_job_columns', function($columns){ $columns['view_count'] = __('View Count','noo'); return $columns; },100); add_filter('manage_noo_job_posts_custom_column', function($column){ global $post; if($column === 'view_count'){ echo noo_get_post_views($post->ID); } }); add_filter('manage_edit-noo_job_sortable_columns', function($columns){ $columns['view_count'] = 'view_count'; return $columns; }); add_action( 'pre_get_posts',function($query){ if(!is_admin()){ return; } $orderby = $query->get( 'orderby'); if( 'view_count' === $orderby ) { $query->set('meta_key','_noo_views_count'); $query->set('orderby','meta_value_num'); } });
Best regards.
3 years, 1 month ago #1211788This reply has been marked as private.3 years, 1 month ago #1211798 -
AuthorPosts
You must be logged in and have valid license to reply to this topic.