• Resolved vbraun

    (@vbraun)


    I need the [jobs] shortcode not to list jobs on first load of the page where it is. I need that only when the user informs a filter the vacancies are listed. How to do this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • @vbraun
    I´d never tried this, but maybe you can just set the default number of jobs to be shown per page to zero at the jobs options settings.
    Then try to filter for a job and see if it works out and you get output of search results

    Plugin Contributor Cena (a11n)

    (@cena)

    Hi @vbraun ,

    I tested @braehler ‘s suggestion but couldn’t quite get it to work; 1 job was always shown, regardless of number of jobs selected per page.

    I tried setting the per_page argument via both the Listings->Settings-Job Listings setting, and via the Jobs page by using the shortcode [jobs per_page='0']. The Listings Per Page option sets the “per_page=XX” value, so the shortcode usage is likely redundant.

    That said, neither worked, either separately or in combination – one job was always shown on the jobs page.

    I believe this is happening due to this line of code in WPJM.

    So, while we can’t help with custom code, that’s probably a good place to start if you’d like to show ZERO jobs on the job listings page; the link above shows why, even when setting Listings Per Page to 0, it still shows 1 job.

    Please note that we do not recommend editing core files, and that we highly recommended that you set up a staging site for testing code customizations.

    Best,

    • This reply was modified 4 years, 1 month ago by Cena (a11n).
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘disable filtering on first load’ is closed to new replies.