• Creativemind18

    (@jobsgivers)


    I use the guide here: https://gist.github.com/yousufansa/975a5aa4b831cce999b287709eaf4c71 to display the jobs posted by a company on the company’s single page and it does the work as expected, but unfortunately i am not able to control the number of jobs to be displayed on the company single page.

    Some companies have over 200 open jobs and the entire jobs display on the single company page without pagination thereby making the page size too big for a faster page load.

    Please how do i limit the number of jobs to something like the 10 most recent jobs on the company single page even though the company has so many open jobs?

    Any kind of snippet to achieve this?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor nilofer07

    (@nilofer07)

    Hello there,

    Thank you for trying out our plugin. Please add the below custom code functions.php file

    https://gist.github.com/nilofer-farzana/c808ec0c9a64861167f178f8722fa903.

    Hope this helps. Let us know if you have any other questions or need further help.

    Thanks, N

    Thread Starter Creativemind18

    (@jobsgivers)

    I have added the code you provided to my functions.php but unfortunately it did not work, nothing seems to change on the single company page after adding the code. All open jobs of a company still show without limitation.

    Kindly check your code if you need to do any modification to make it work.

    I await your usual quick response.

    Thanks.

    Plugin Contributor nilofer07

    (@nilofer07)

    Please add the given code to your functions.php file in child theme and activate child theme.

    Thanks.

    • This reply was modified 2 years ago by nilofer07.
    Thread Starter Creativemind18

    (@jobsgivers)

    Yes i have been using child theme, i actually added the code to my functions.php file in child theme but it did not work at all. I tried it in child it did not work, i also try adding it via code snippet plugin still it did not work.

    I tried this code in 3 sites where i have wp job manager plugin and MAS Companies For WP Job Manager plugin active. The code did not work in any of the sites.

    Did you try this code at your end, is it working at your end? Because adding the code did not seem to change anything on the single company page at all.

    Please any further help will be appreciated.

    Thanks.

    Thread Starter Creativemind18

    (@jobsgivers)

    You are one of the few plugin developers that always find a way of resolving their users challenges and i have respected you for that.

    Please do not abandon this my request unresolved. I will be grateful if you can help with further observation of this issue to know why your snippet did not resolve my the issue.

    This really mean so much to me.

    I await your response.

    Thanks.

    Plugin Contributor nilofer07

    (@nilofer07)

    Hello again,

    I checked the original link that you’ve shared. It does not display the jobs like you’ve described. Can you please share with us the correct function that you are using to display jobs in single company page?

    • This reply was modified 2 years ago by nilofer07.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Limit the number of open jobs displayed on the single company page.’ is closed to new replies.