• Resolved darcimm

    (@darcimm)


    1. Is there a way to categorise the listings on the results page?

    For example, I’d like to add sub-titles/accordions throughout:

    //header
    //banner

    [search box]

    Current Vacancies:
    Advisors:

    advisor job 1
    advisor job 2
    HR:
    hr job 1
    hr job 2
    hr job 3
    Marketing:
    mktg job 1
    mktg job 2
    mktg job

    //footer

    2. How can I add content between the search bar and the listings?

    https://www.ads-software.com/plugins/simple-job-board/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author PressTigers

    (@presstigers)

    Hi darcimm,

    1- For now, you can not display categories in your required order. But you can add some custom code in your template to display them in particular order.

    2- You can use the “sjb_job_listing_before” or “simple_job_board_job_filters_after” action hooks for adding content between search bar and job listing.

    Thank you for writing to us.

    Regards,
    PressTigers

    Thread Starter darcimm

    (@darcimm)

    Hi thank you for your quick response.

    1 – Could you expand on this? What template file can this be done in? What code would list them in a category order?

    2 – Sorry, bear with me here – I’m new to this! I have not been able to figure out where the action hooks are stored. Do I need to create a new one or does this hook exist in a file somewhere? If so, in which file? Is the below ok for creating a new action hook – which file do I save it in? I tried adding this to simple-job-board-public.js as well as job-filter.php and it didn’t work:

    function sjb_job_listing_before(){ ?>
    <h2>TEST</h2>
    <?php}

    Thank you for your help

    Plugin Author PressTigers

    (@presstigers)

    Hello darcimm,

    1- We are using simple-job-board> templates> job-filters.php template for displaying job filters like job category, job type and job location. Please customize it according to your requirement.

    2- These hooks are already defined in plugin templates. You have to use these action hooks. If you don’t have any idea with usage of action hooks, please go through the following link.

    https://codex.www.ads-software.com/Plugin_API#Hook_to_WordPress

    Thanks & Regards,
    PressTigers

    Thread Starter darcimm

    (@darcimm)

    Thank you for your response

    Regarding #2, where are these hooks defined in the plugin templates? I searched all documents and only was able to find where it was called, not where it was defined.

    Thanks,
    Darci

    Plugin Author PressTigers

    (@presstigers)

    Hi Darci,

    “sjb_job_listing_before” and “simple_job_board_job_filters_after” are hooks which are defined through do_action. These actions are here for adding the custom functionality in Job Board and will only work when you call its action hook.

    If you know the usage of WP actions then use the above mentioned action hooks to write the code for adding contents between the search bar and the listings.

    Thanks & Regards,
    PressTigers

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Categorise Listings’ is closed to new replies.