• Resolved biomeglio

    (@biomeglio)


    I would like that when you click on a single work a page opens with the external link to the work itself.

    I don’t want to delete the individual job pages on my site, but I just want to click on the job summary page to go to the external job offer, that of the client, and not to the page on my site.

    I have read all the posts about it, but you have only given hints, without solving the problem. at some point, someone said that in the ‘content-job_listing.php’ file you need to modify this code:

    ‘<a href=”<?php the_job_permalink(); ?>”>’

    on line 22,

    but exatcly WHAT SHOULD I WRITE HERE to ensure that my client’s external page opens and not the job detail page on my site?

    thanks, I hope I was clear

    Stefano

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Stef (a11n)

    (@erania-pinnera)

    Ciao @biomeglio,

    I think I get what you’re asking. Can you take a look at this other similar forum thread and let us know if that helps?

    Keep in mind that assisting with customization is outside of the scope of the support that we can offer, per our Support Policy. If you need extra help, you can search for development help in a variety of places, and we can suggest some of the companies our users have been happy with ??

    Thread Starter biomeglio

    (@biomeglio)

    have you a solution?

    • This reply was modified 1 year, 2 months ago by biomeglio.
    Plugin Contributor Stef (a11n)

    (@erania-pinnera)

    Hey @biomeglio,

    The solution I thought about is the same shared on this forum thread:

    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.

    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()

    Can you let me know if this is what you’re looking for, and if it works out for you?

    Thread Starter biomeglio

    (@biomeglio)

    I can assure you that it doesn’t work like this, several people have tried in other threads where this modification is suggested but everything crashes. with php it’s not enough to change a link to make it work. the whole string is needed here.

    and honestly I’m surprised that Automattic isn’t able to provide a minimum amount of support on these features, they are minimal additional things that need to be foreseen in my opinion

    Plugin Contributor Stef (a11n)

    (@erania-pinnera)

    Hi there, @biomeglio,

    You may want to try?the get_the_job_application_method()
    and use something like the following:

    <a href="<?php echo esc_url( get_the_job_application_method()->url ); ?>"

    While I can’t stress enough that this sort of customisation goes beyond the scope of our support, note that you need to check if the application method is not empty and its type is indeed ‘url’.

    The?job-application.php?and?job-application-url.php?templates provide some examples.

    To clarify any confusion around how to output the URL, in case you struggle with PHP, the following template has some examples you can check:?content-single-job_listing.php?

    ?php if ( $website = get_the_company_website() ) : ?
    Thread Starter biomeglio

    (@biomeglio)

    Thank you very much, I tried it and it works. if I click on a single job I access the application URL directly, bypassing the single job page, which is not deleted. but the logo image on the left disappears and an empty space is created. How do I show the image too?

    see here:

    https://posizioniaperte.com/offerte-di-lavoro/

    Plugin Author Peter Kiss (a11n)

    (@yscik8)

    Hello @biomeglio!

    I’m not sure I can see the problem anymore on that page, but that sounds like an issue with the HTML structure. I’d check if all tags are closed correctly and elements are nested where it should be.

    You might also need to tweak the CSS for the pages.

    Note that while we are equipped and happy to provide guidance on how to customize the plugin, as Stef said earlier that’s about the limit of support we can do in this forum.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘External link from Job Listing’ is closed to new replies.