edmario
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Job Manager] Jobs do not appear on the dashboardHi @tamirat22 ,
The problem is with the theme. I switched to another theme and the job list appeared.
I will check with the theme developer to see if anything can be done to resolve the issue.
Thank you for your attention.Forum: Plugins
In reply to: [WP Job Manager] Jobs do not appear on the dashboardHi, @dericleeyy
Yes, the user has two published jobs.
The username is “Loja Teste”
I’m not currently using any snippets.
Check out the prints below. At first everything is ok, except on the dashboard:Forum: Plugins
In reply to: [WP Job Manager] Jobs do not appear on the dashboardHello @erania-pinnera Stef,
No problem, I appreciate your dedication to helping me.
Yes, the goal is to have logged in users only see their jobs on the dashboard, however jobs don’t show up by default. And, as I put in the previous prints, there doesn’t seem to be any javascript errors.
I put the snippet just to see if it worked, if any job appeared and it did! But as expected this snippet is for another situation.In the image below I am logged in with an employer account that has published jobs, but no job appears:
Thanks again for your help
Forum: Plugins
In reply to: [WP Job Manager] Jobs do not appear on the dashboardHey Stef @erania-pinnera ,
Almost all of your information is correct.
Only the last part I need to explain better:
Does not appear for logged out users. Which is correct.
However, on the job edit page in the dashboard, the jobs of all logged in users appear for all other logged in users and not just the jobs that were created by the logged in user.
If a user is logged in and goes to the edit page to manage his jobs, he can view the jobs of other users on the edit page.
Thank you for your attention.Forum: Plugins
In reply to: [WP Job Manager] Jobs do not appear on the dashboardNo error was found as we can see in the image:
The strange thing is that if I add the code I found around here:
add_filter( 'job_manager_get_dashboard_jobs_args', function( $job_dashboard_args ) { $user = wp_get_current_user(); $roles = ( array ) $user->roles; if ( ! empty( $roles ) && in_array( 'employer', $roles, true ) ) { unset( $job_dashboard_args['author'] ); } return $job_dashboard_args; } );
Jobs appear, but from all employers to all employers. Here’s the image:
Would it be possible to show only the jobs of the logged in user?
Any code or other ideas?