Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    You can change the slug: https://gist.github.com/mikejolley/7718889 I’m not 100% sure if ‘jobs’ will confloct with your page, but you can try.

    R/e sidebar:

    1. Create a single-job_listing.php template in your theme
    2. Copy the contents of single.php to this new file
    3. Edit the get_sidebar code/load a different sidebar in your new template file.

    orangemint123

    (@orangemint123)

    This doesn’t work for me.

    I’ve copied single.php across both from the theme I’m using and I’ve tried copying to from TwentyFourteen but it doesn’t display the jobs anymore, it just keeps copying the heading of the job about a hundred times down the page!

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    @orangemint123 Don’t copy a template file from a different theme to another, that probably won’t work.

    Read this for some background: https://codex.wordpress.org/Template_Hierarchy#Single_Post_display

    The hierarchy for a job listing would go:

    1. single-job_listing.php
    2. single.php
    3. index.php

    If your theme *has* a single.php, that would be used for a job posting, unless you made a single-job_listing.php. if single-job_listing.php contains *exactly* the same code as single.php, the output should remain unchanged.

    Therefore based on that, it sounds like you may have copied either the wrong code across, or customised it wrongly. Obviously without seeing what you’ve done this is a guess, but its my best guess given your description 🙂

    orangemint123

    (@orangemint123)

    This is exactly what I’m doing:

    I’m using the theme Shelflife:
    1) I go in to the shelflife theme, open up single.php
    2) copy the contents
    3) go to my shelflife child theme
    4) paste the contents in to job_manager/content-single-job_listing.php

    Now it looks like this:
    http://mccartney-maxwell.com/mccartney187694/job/optometrist/

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    content-single-job_listing.php is not single-job_listing.php. read above – you are modding the wrong template file.

    orangemint123

    (@orangemint123)

    Oh bollocks

    orangemint123

    (@orangemint123)

    It’s working now! Must learn to read.

    Thank you very much for your patience Mike!

    🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘URL for single job listing & custom sidebar’ is closed to new replies.