• Resolved ibiza69

    (@ibiza69)


    Hi, we had installed since long ago at code snippets your code from your site: “tutorial-adding-a-salary-field-for-jobs”

    It worked like charm for all this time, but after updating the plugin, all our salaries dissapeared, plus dissapeared the field at publishing job offers form.

    How can we return it back with all salaries published all this past time?

    Thanks in advance for your help.

Viewing 15 replies - 1 through 15 (of 20 total)
  • Thread Starter ibiza69

    (@ibiza69)

    We have solved it, we had to activate new option Job Salary at WPJM plugin and our job_salary camed back. Thank you!

    Thread Starter ibiza69

    (@ibiza69)

    Hi, sorry for writting back, but new we have 2 frases at salary field, the one we placed long ago with salary in euros and another one just behind with salary in $ and YEARLY, when our salaries are montly and in euros. How can we take off that new frase that shows salary in english and yearly?

    1. We have tryed to go over the plugin files and founded that at plugin root, if we edit the file: wp-job-manager-template.php, we can try to edit all those, but isn′t too secure to be editing the plugin root files for changing for example the USD to EUR and all the thing we have included at code snippets from your code given at your site.

    Could you try to fix this, letting users edit the currency and the way the salary is shown?

    2. Another thing we saw it’s that there are some fields that before didn′t appear at admin side and that now are shown and that we do not need them: company slogan, company video, etc…. Is there a way for now showing those?

    Thank you.

    Hi @ibiza69,

    It sounds like since you enabled the new feature for showing salaries it is conflicting with the code snippet you added. You can try disabling that feature again to see if it is still showing the code snippet.

    If it doesn’t, you can remove the code snippet you added originally to put in the salary, then override the template for the Single Job Listing to change how the salary is displayed. This kind of customization is outside our scope of support, but you can find more information on how to do this kind of customization here:

    https://wpjobmanager.com/document/template-overrides/

    For your second question, you can specify fields to hide using the snippet for “Remove all company details from the job submission page” on this page:

    https://wpjobmanager.com/document/wpjm-core-snippets/

    Let us know if you have any other questions!

    Hi again @ibiza69,

    I found these details after replying, the salary in USD/year issue has been raised to our developers and you can track the progress here:

    https://github.com/Automattic/WP-Job-Manager/issues/2278

    As another temporary workaround you can use this kind of snippet:

    add_filter( 'wpjm_job_salary_currency', function( $currency ) {
      return 'GBP';
    } );

    Just changing GBP to the currency of your choice. And add this filter to change the period using this:

    add_filter( 'wpjm_job_salary_unit', function( $unit ) {
      return 'MONTHLY';
    } );
    Thread Starter ibiza69

    (@ibiza69)

    Thanks @michaelnutt, we will go over all this you recommended. Thanks a lot once more!!

    Plugin Contributor Stef (a11n)

    (@erania-pinnera)

    Hey @ibiza69,

    I’m so glad we were able to help ?? Keep an eye on the GitHub issue we mentioned in our previous messages so you can follow along and know right away when we find a definitive fix for this bug.

    I’m going to mark this thread as solved. If you have any further questions or need some more help, you’re welcome to open another thread here. Cheers!

    Thread Starter ibiza69

    (@ibiza69)

    Hi @michaelnutt and @erania-pinnera, sorry for writting back, I wanted to ask if could be possible to work with some kind of snippet that could manage to hide fields at both “admin form submission backend and from job submission page”, as we have fields after this last update that started to show and we had them deactivated before this update, but we can′t find anyway for hiding them completly, as we do not use them:

    ‘company_tagline’
    ‘company_video’
    ‘company_twitter’

    Thanks in advance for any help provided ??

    @ibiza69,

    I’m having this same issue with initially hidden job submission form fields in admin returning after update to the latest version.

    Have you manage to find a fix for this? If you do please share with me.

    Thread Starter ibiza69

    (@ibiza69)

    Hi @jobsgivers, nope, not yet, I’m waiting to see if someone helps me too… All this updates and usually terrible for all our companies live, as the do not give the option to fix salary field as it should, to fix all this fields deactivated (company slogan, company twitter, etc), appearing back (even deactivated)…. Hopefully someone helps us ??

    Plugin Contributor Stef (a11n)

    (@erania-pinnera)

    Hi @ibiza69 and @jobsgivers,

    `I wanted to ask if could be possible to work with some kind of snippet that could manage to hide fields at both “admin form submission backend and from job submission page”, as we have fields after this last update that started to show and we had them deactivated before this update, but we can′t find anyway for hiding them completly, as we do not use them:

    ‘company_tagline’
    ‘company_video’
    ‘company_twitter’`

    Can you confirm that this is an issue/request that is not related to the initial Job_salary issue of this thread, even though it occurred as well upon updating WP Job Manager to the last version?

    Thread Starter ibiza69

    (@ibiza69)

    Hi @erania-pinnera thanks for answering, it’s about this 2nd part of the thead we created, in this post

    2. Another thing we saw it’s that there are some fields that before didn′t appear at admin side and that now are shown and that we do not need them: company slogan, company video, etc…. Is there a way for now showing those?

    Thank you!

    @ibiza69 and @erania-pinnera,

    I don’t think this current issue has anything to do with Job_salary issue.

    For me, i don’t have issue with hiding fields in frontend job submission form, i’m only having issue with hiding those fields in the admin area after the latest update.

    I’m still working on trying to get a working code to hide field in the backend.

    However, i have also opened a separate thread for this issue since WPJM team are no longer replying this Thread, probably because this is not the original purpose of the thread and was initially marked as resolve.

    Below is the link to the thread i open for this backend field hiding issue, you can join the thread. Maybe they will reply if they see reports from different users.

    Here is the thread.

    @ibiza69 and @erania-pinnera,

    Good news to to you both, i just figured out a working code to hide the fields after my last comment.

    WPJM actually change the hook in their last update, so the old hook no longer work. The code below works for the latest version:

    add_filter( 'job_manager_job_listing_wp_admin_fields', 'custom_job_manager_job_listing_data_fields' );
    
    function custom_job_manager_job_listing_data_fields( $fields ) {
    
    unset($fields['_company_tagline']);
    unset($fields['_company_video']);
    unset($fields['_company_twitter']);
    
        return $fields;
    }

    Hope you guys find this useful.

    Cheers!

    Plugin Contributor Stef (a11n)

    (@erania-pinnera)

    Hi @jobsgivers,

    However, i have also opened a separate thread for this issue since WPJM team are no longer replying this Thread, probably because this is not the original purpose of the thread and was initially marked as resolve.

    That is what I asked! I would nudge you to create a new thread for it as it’s easier for us (and for other forum users) to follow the threads and find solutions also in the future ??

    I’m glad that you have created a new thread and you found a solution! @ibiza69 pinging you in case you haven’t seen it!

    I am marking again this thread as solved, and again – in case you need some more help, you’re welcome to open another thread here. Cheers!

    Thread Starter ibiza69

    (@ibiza69)

    That was just awesome @jobsgivers, the code worked at all our sites incredibly well, as the code code with [‘company’] didn′t work anymore. Thanks a lot for sharing it with us!

    And @erania-pinnera, thanks to you too, I will for sure create a new thread next time ??

    Have a very nice day both!

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Problems after update Job_salary dissapeared’ is closed to new replies.