Hi Magnus,
If you know how to use WordPress hooks, @presstigers suggestion is the cleanest.
If you want to go the theming route these two solutions should work:
Ad After the Search Filter
To place an ad right after the search filter, you can use the job-filters.php template file instead of the content-job-listing-list-view.php. Again you would just drop the ad tag in after the closing </article>
tag.
Ad between first two Jobs
If you want the ad between the first two ads you could set a count variable (I wasn’t able to find a counter that was available from SJB, so in this snippet, I’ve created my own). This would go in the same place as I originally suggested (approx line 99 content-job-listing-list-view.php) but in this scenario, I’ve set a counter and wrapped the ad tag in an if
statement.
<?php
global $my_job_counter;
$my_job_counter = ( isset( $my_job_counter) ) ? $my_job_counter + 1 : 1;
if( $my_job_counter == 1 ) { ?>
<div class="adplugg-tag" data-adplugg-zone="my_in_btn_jobs_zone"></div>
<?php } ?>
You could employ a similar counter type solution using hooks as well.
Best,
Collin Krawll
AdPlugg