• Resolved temperso

    (@temperso)


    How can we replace the link to the job page in content-job_listing.php

    <a href="<?php the_job_permalink(); ?>">

    with a link to the company?
    We replace company-links with links to external application pages.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi @temperso,

    If it is just one company page, you can copy the template file and override it as described here:

    https://wpjobmanager.com/document/template-overrides/

    Then replace that PHP code with the link to the company page. If it is several different company pages, you would need to write your own PHP function to pull the company page.

    If you have any other questions, give us a shout!

    Thread Starter temperso

    (@temperso)

    hi @michaelnutt,
    thanks for the answer!
    We already did the override. this is not our problem.

    We want to replace this link (the_job_permalink) with the company website link. But i cannot find the correct company website link code?

    Plugin Support lastsplash (a11n)

    (@lastsplash)

    Hi @temperso

    We have a list of template tags here:

    https://wpjobmanager.com/document/template-tags/

    To get the company website, you will want to use: get_the_company_website()

    Plugin Support Jay

    (@bluejay77)

    Hi there,

    It has been more than one week since we have heard from you, so I’m marking this topic as resolved.

    But if you have any further questions or need some more help, you’re welcome to reply here or open another thread.

    Thread Starter temperso

    (@temperso)

    Hi there,

    i only hav minimal basic knowledge in php.
    So i do not really know, how to replace the code in content-job_listing.php

    <a href="<?php the_job_permalink(); ?>">
    		<?php the_company_logo(); ?>
    		<div class="position">
    			<h3><?php wpjm_the_job_title(); ?></h3>
    

    with the get_the_company_website() tag so that the job list items link to the comany website.

    sorry for the bother – i tried a lot ??

    • This reply was modified 1 year, 10 months ago by temperso.
    Plugin Support lastsplash (a11n)

    (@lastsplash)

    Hi @temperso

    It should be a matter of replacing the_job_permalink() with get_the_company_website(). However, if you continue to have trouble, we recommend hiring a developer as we can’t assist with custom code per our support policy.

    If you need help finding a developer, we recommend:

    https://jobs.wordpress.net

    Thread Starter temperso

    (@temperso)

    Hi @lastsplash
    seems not as easy, as a simple replacement

    <a href="<?php the_company_website(); ?>">
    		<?php the_company_logo(); ?>
    		<div class="position">
    

    this code does not create the desired link.

    So – no problem – we try to find a professional.
    thanks a lot ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Link to Application or Company’ is closed to new replies.