• Resolved bba01

    (@bba01)


    Hi!

    I’ve been googling around the web and this support forum without finding the answer. My categories are displaying on the [jobs] page but when I click on a single job it doesn’t show. I’ve tried changing theme but still no luck.

    How do I make the single job listing page show the categories valid for the particular job listing?

    With best regards,

    bb

Viewing 3 replies - 1 through 3 (of 3 total)
  • @bba01

    try adding this code into the single-job_listing-meta.php and then upload this to
    yourchildtheme/job_manager/content-single-job_listing-meta.php on your server

    <li class="job-category <?php echo get_the_job_category() ? sanitize_title( get_the_job_category()->slug ) : ''; ?>"><?php the_job_category(); ?></li>

    Plugin Contributor Cena (a11n)

    (@cena)

    Hi @bba01 ,

    To clarify braehler’s comment a bit, you want to do this via a template override, not by editing the core file directly: https://wpjobmanager.com/document/template-overrides/

    Basically you want to make a blank file called single-job_listing-meta.php, paste the above code into it, and save it into a new directory (as braehler notes) within your theme directory.

    Best,
    Cena

    Thread Starter bba01

    (@bba01)

    Cool? Will try that! Thank you very much! ?? /b

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to display job categories on single job page?’ is closed to new replies.