How to always show results line/how to delete RSS link.
-
Hey,
I would like to enable the line with results always, not only when showing results. People then can add a job alert, even when there are no results at the moment. I don’t understand, why this is feature is not the standard.
Also I want to enable the # of results also when showing every job.The line is the line with css classes “showing_jobs wp-job-manager-showing-all”
Also I would like to delete the RSS option. It’s to technical for our users.
I found out, that there exists this filter: job_manager_job_filters_showing_jobs_links
But I cannot find any documentation of this.Thanks for your help!
-
Hi @wp_user1 –
I would like to enable the line with results always, not only when showing results. People then can add a job alert, even when there are no results at the moment. I don’t understand, why this is feature is not the standard.
Unfortunately, I’m not sure that I entirely understand this request. That said, Job Alerts are not a core function of WP Job Manager and you are available in the paid Job Alerts add-on. We are unable to support paid add-ons via the forum.
Also I want to enable the # of results also when showing every job.
The line is the line with css classes “showing_jobs wp-job-manager-showing-all”
This is likely being controlled via your theme. You would need to adjust the CSS on your theme to not hide the
showing_jobs wp-job-manager-showing-all
if it is currently being hidden. We aren’t able to provide assistance with CSS and theme customizations.Also I would like to delete the RSS option. It’s to technical for our users.
I found out, that there exists this filter: job_manager_job_filters_showing_jobs_links
But I cannot find any documentation of this.You can use the code snippet here to hide the RSS link:
https://gist.github.com/mikejolley/124fd9701e7519fc556b
We recommend adding this PHP snippet to your site using a plugin like Code Snippets instead of adding it directly to the
functions.php
file.I hope that helps.
Hey, thanks for your answer.
It is not a styling thing only. And it is a core function ??
If you have the job overview, you cannot see the # of results.
This info is even missing in the source code – so I cannot make it magicely appear with a CSS ??Hi @wp_user1
For Jobs Alerts, it’s possible to filter keywords, locations, and categories without having a result of a job listing with those, so I don’t understand what you meant by mentioning users not being able to create alerts if there are no current results.
Can you provide more information about the number of results you refer to in the job overview?
@muffinpeace perhaps my english was too bad.
There are 2 different questions/problems.
1. Regarding the core functions of WP Job Manager:
I want to output the count of found jobs – always. At the moment the “# of results” only appear AFTER doing a search AND when finding minimum 1 result. As you mentioned, this is the line showing_jobs wp-job-manager-showing-all. It is not in source code when you open the WP Jobs Manager page. Please see e.g. https://www.hsseq4u.de/jobs/
So when you open, you find all the jobs. But you cannot see how many jobs there are. Because the line is not there. This is not a theme or css problem.
2. The second question is the Job Alerts add-on. You cannot access it when not finding any jobs (because the link is in the line mentioned above).
Kind regards
I made screenshots, perhaps you can see what I mean:
before search:
https://abload.de/img/bildschirmfoto2022-08amimt.jpgafter search:
https://abload.de/img/bildschirmfoto2022-085ri5o.jpgHi @wp_user1
Thanks for sending those screenshots! It clearly shows what you initially wanted to achieve.
That’s the default behavior of the form, although it may be possible to just show the total number of jobs through custom development; however, it wouldn’t make very much sense to have the “Create alert”, and “RSS” buttons there if there are no results showing. If you just want to show the total number of jobs, you can check more about that on our documentation:
https://wpjobmanager.com/document/common-customizations-and-feature-requests/
Please note that we can’t assist with custom development and customizations as these.
Always the same when asking for support here ??
“through custom development” -> but where should I edit this without touching the core plugin files? It is not in the theme file.
Hi @wp_user1,
You would need to override the template for the job listings page, this page has more details on that:
It seems like my problem is still not clear.. or you don’t know the scripts ??
There is no access to this line, that is missing from the theme files.
The line comes from this here:
do_action( 'job_manager_job_filters_end', $atts );
in the “job-filters.php” file.
But I cannot change there anything to have it visible everytime.
The missing line showed in this screenshot (https://abload.de/img/bildschirmfoto2022-085ri5o.jpg) does not exist in the source code. It comes via Ajax…By the way. The issue is a known bug:
https://github.com/Automattic/WP-Job-Manager/issues/1815But it seems to be ignored for years -.-
Hi there,
I can see you have left some comment here, but I’m not sure if it’s from you but if I’m matching time, it looks it was you. This isn’t something that is being actively worked on at present.
If I’m correct, you want this box to appear always. Correct?
Assisting with customization is outside of the scope of the support that we can offer, per our support policy.
But I was just trying CSS and found below CSS can help you achieve what you are looking for. You can paste this CSS by going to WP Admin ? Appearance ? Customize ? Additional CSS section.
.showing_jobs { display: block !important; } .showing_jobs .rss_link { display: none; }
If it works for you then you can keep it as a temporary solution; otherwise, either you will need to wait or you can hire someone so that they can fix it for you for your site. ??
@bizanimesh thanks for this.
We already had this CSS code.But – again – the problem is: the line does not exist in the source code at all. It is not a css-problem! So to your question: “If I’m correct, you want this box to appear always. Correct?” –> NO.
The line comes via ajax after making a search (WITH results only!).See it in the screenshots above.
We already had this .showing_jobs on display block.You can proof it yourself here: https://www.hsseq4u.de/jobs/
When you don’t search, you don’t have this line with results (rss and job alert) in the source.You don’t have it visible when you have no result (just search for “dsdsdsdsdds”).
You only have this line when you make a search AND have minium 1 result (e.g. search for “hse”).
In my opinion it is not customizing problem. It is a bug.
Kind regards
DanielHi @wp_user1
I understand what you’d like to achieve; however, it’s not a bug as it’s meant to explicitly show RSS and Job Alert option when a specific search was done.
If you’d like to customize that, you’ll need to make changes to the PHP templates for WP Job Manager, specifically the file related to the Jobs shortcode (and its search form).
The template file for the Job Search can be found on the
job-filters.php
file.@muffinpeace that is NOT correct.
RSS and Job alert are only shown when search was done AND results are found.
It’s really shocking, nobody noticed, that this logic does not make sense at all. Especially people who do not find the job directly, need to get an alert.As I said before, it is NOT changable through the job-filters.php file.
The line comes from here (in the job-filters.php), but it is not changeable and it is not documented at all:
do_action( 'job_manager_job_filters_end', $atts );
We deleted this now, because the Job Alert add-on is useless too because you cannot add custom fields (it’s not worth the money). We implemented an own job alert function.
Hi @wp_user1
Sorry for not being accurate; I meant that those buttons should only show when a search was done and a result was found; in short, it’s not possible to create an alert for a search that doesn’t have any matching listing; however, it’s possible to do that directly through the Job Alerts page, that was generated when you installed the add-on.
I can see that you proceeded to delete those and implement your own function, so I’ll mark the thread as resolved.
Best,
- The topic ‘How to always show results line/how to delete RSS link.’ is closed to new replies.