• Resolved imcobarn

    (@imcobarn)


    Hi,

    My main page for jobs is custom page called Careers set in plugin settings with added shortcode.
    That page careers is Parent page for Job dashboard, job posting form and search page so structure for breadcrumbs is like this:
    Home > Careers > Job Dashboard

    When viewing single job posting breadcrumb links to “jobs” page which does not exist.
    Home > Job > Single Job Title

    Is there a way to change that “Job” link in breadcrumb?

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Adam Heckler

    (@adamkheckler)

    Is there a way to change that “Job” link in breadcrumb?

    I think this may depend on how the breadcrumbs are being generated.

    If they’re being created by your theme, you’ll need to consult that theme’s documentation on how to alter them. Without a link to your site, though, it’s hard for me to tell how/why those breadcrumbs are there.

    I would ask your theme author in any case and see what they say.

    Thanks!

    Thread Starter imcobarn

    (@imcobarn)

    Hi Adam, thank you for the reply.

    This install is on local environment.

    I tested with different theme and same result.

    I didn’t solve it but I think I figured out where the problem might be.

    In Permalinks, “Job base” default is “job” so url is mysite.com/job/job-post
    At first clicking that link in breadcrumb took to the page job which didn’t exist.

    I switched permalink to “careers” and url became mysite.com/careers/job-post
    That’s good.

    But since I put Job dashboard, job posting form and search page under Careers page as parent, those pages return 404 Not found.
    (mysite.com/careers/job-dashboard/ for example)

    If I switch permalink to default (job) those pages work again but single job pages take on mysite.com/job/job-post url.

    Also link “job” in breadcrumb when clicked takes to mysite.com/job/ which redirects to Job Dashboard page, /job-dashboard/.
    That must come from the plugin right?

    Does that help?

    Thank you.

    • This reply was modified 6 years, 11 months ago by imcobarn.
    Plugin Contributor Adam Heckler

    (@adamkheckler)

    I switched permalink to “careers” and url became mysite.com/careers/job-post
    That’s good.

    But since I put Job dashboard, job posting form and search page under Careers page as parent, those pages return 404 Not found.
    (mysite.com/careers/job-dashboard/ for example)

    The base URL for jobs cannot be the same as an already-existing page, so that’s why things are broken when it’s so to “Careers.” You need to choose a base that doesn’t have an existing page with the same title I think.

    Also link “job” in breadcrumb when clicked takes to mysite.com/job/ which redirects to Job Dashboard page, /job-dashboard/.
    That must come from the plugin right?

    Core WordPress does that. Because “job” is just a placeholder in the URL, it doesn’t actually exist. If you try to go there, WordPress guesses you mean the Job Dashboard page, so that’s where it takes you.

    Again, the solution is to choose a URL base that doesn’t have a page by that name.

    Thanks!

    Thread Starter imcobarn

    (@imcobarn)

    Ok, thanks for the reply.

    I did solved it sort of.

    Changed job base url to “jobs”, created page “jobs” that lists jobs via shortcode and placed that page under careers page as a child.

    using function snippet from your site Documentation to rewrite jobs to careers/jobs, “change_job_listing_slug”

    So now single job posts url is mysite.com/careers/jobs/job-post
    Breadcrumb links to that new page mysite.com/careers/jobs/ so that’s better then before.
    Still can’t change the text of the link in breadcrumb, it says “Job” regardless of the Title of that page I created but it links correctly now.

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Breadcrumb link on job postings’ is closed to new replies.