Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter Panos_M

    (@panos_m)

    I haven’t found any solution yet to add google adsense code between jobs. Has anyone some ideas about?

    I don’t think this is feasible. I’m attempting a Jobs Sidebar though, and waiting on support.

    Thread Starter Panos_M

    (@panos_m)

    i think this could get it work. I am trying to write the right code in functions.php but i didn’t make it done so far. Maybe will be another way, i don’t know. I will welcome any ideas about.

    Thread Starter Panos_M

    (@panos_m)

    Is there any suggestion how to put adsense code between job listings? ( ex after the 5th job posting )

    Best Regards,
    Panos

    Plugin Contributor Davor

    (@davoraltman)

    Hi Panos!

    What you need will have to be custom coded. We can’t help with custom code, unfortunately, but I can point you to the wp-content/plugins/WP-Job-Manager/includes/class-wp-job-manager-shortcodes.php file where the output_jobs function for listing jobs resides.

    Let me know if you found a way to make it work. Cheers!

    Thread Starter Panos_M

    (@panos_m)

    @davor.altman thank you for your reply but unfortunately i am not able to write the right function. I am trying to add a filter but i get alwayws no jobs output. The function overrides and remove the job listings.

    function job_listing_advertisment() { 
    
    }
    add_filter( 'job_manager_job_listings_output', 'job_listing_advertisment' );

    Any help to finish the function?

    Thread Starter Panos_M

    (@panos_m)

    Because I don’t know where to start does anyone know a plugin that could add the adsence code between jobs?

    Thread Starter Panos_M

    (@panos_m)

    After some help i get a start point

    add_filter('job_manager_job_listings_output','my_job_manager_job_listings_output');
    function my_job_manager_job_listings_output($output) {
       $adsense_code = ' My adsense code';
       return $output . $adsence_code;
    }

    Is this in the wright direction?

    Plugin Contributor Davor

    (@davoraltman)

    Sorry, Panos, but we aren’t able to help with custom code requests like this. You may want to look into one of these services:

    https://jobs.wordpress.net/

    https://studio.envato.com/

    https://codeable.io/

    Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Google Adsense code after fifth job posting’ is closed to new replies.