NooTheme Premium WordPress Theme › Forums › JobMonster › total shortlisted candidates
- This topic has 5 replies, 2 voices, and was last updated 4 years, 6 months ago by dangdv.
-
AuthorPosts
-
4 years, 6 months ago #1178131
Hey i wanna show total number of shortlisted candidate in drop down menu of admin , if i can do that please let me know.
4 years, 6 months ago #1180671Dear, what is 'drop down menu of admin' please send for me a screenshot, i will check to help you.
Best regards.
4 years, 6 months ago #1181877i want to show total number of shortlisted candidate here in this menu with shortlist button to employer
4 years, 6 months ago #1184271You want display like attachment ? please switch your site to use Jobica child theme, then copy file 'user-menu.php' from 'themes/jobica/layouts' theme paste to 'jobica-child/layouts/user-menu.php' then you can add custom Custom code in file jobica-child/layouts/user-menu.php like attachment
Code is:<?php $current_user = wp_get_current_user(); $list_resume_shortlist = get_user_meta( $current_user->ID, 'list_resume_shortlist', true ); if ( empty( $list_resume_shortlist ) || !is_array( $list_resume_shortlist ) ) { $list_resume_shortlist = array(); } $shortlists = get_posts(array( 'paged' => -1, 'post_type' => 'noo_resume', 'post__in' => array_merge($list_resume_shortlist, array(0)), 'post_status' => 'publish' )); if(count($shortlists) > 0){ echo '<span class="badge" style="position: relative;right: auto;top: -10px;">'.count($shortlists).'</span>'; } ?>
4 years, 6 months ago #1184280Hey we are not using Jobica am using job monster
4 years, 6 months ago #1185838Sorry, but with Jobmonster you do same, Please switch your site to use Jobmonster child theme, then copy file 'user-menu.php' from 'themes/noo-jobmonster/layouts' theme paste to 'noo-jobmonster-child/layouts/user-menu.php' then you can add custom Custom code in file noo-jobmonster-child/layouts/user-menu.php like attachment
Code is:<?php $current_user = wp_get_current_user(); $list_resume_shortlist = get_user_meta( $current_user->ID, 'list_resume_shortlist', true ); if ( empty( $list_resume_shortlist ) || !is_array( $list_resume_shortlist ) ) { $list_resume_shortlist = array(); } $shortlists = get_posts(array( 'paged' => -1, 'post_type' => 'noo_resume', 'post__in' => array_merge($list_resume_shortlist, array(0)), 'post_status' => 'publish' )); if(count($shortlists) > 0){ echo '<span style="position: relative;right: auto;top: -10px;background-color: #ee5b4c;color: #fff;padding: 2px 6px;border-radius: 3px;font-size: 11px;">'.count($shortlists).'</span>'; } ?>
-
AuthorPosts
You must be logged in and have valid license to reply to this topic.