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
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
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.wordpress.org/Plugin_API#Hook_to_WordPress
Thanks & Regards,
PressTigers
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
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