0

I have been working hard to implement few custom post types for making a job board in hybrid news. So far, I have created custom post type- Jobs, created a page template http://pharmastudent.net/jobs for displaying jobs which is place in the parent theme.

If I understand the custom post types correctly, I have to create a single-job.php correct?

Rightnow, the singular.php is modified how an individual job should be displayed http://pharmastudent.net/Jobs/manager

I was made aware that modifying singular.php is not the correct way, instead a single-job.php should be created.. Could anyone help me create the same and let me know where it has to be filed?

Thanks much in anticipation.

Naveen

1 Answer 1

1

You don't have to create a single-job.php. Depending on your content, modifying single.php, or even index.php may be preferable.

The key is to remember the WordPress template hierarchy.

Your template files go right into your theme's folder, by the way.

2
  • Thanks. But, in a lot of tutorials I read that singluar.php is a fall back template. Currently, I have modified singular.php, but if that is not correct, i would like to add singular-job.php
    – Naveen
    Commented Oct 20, 2011 at 16:21
  • I've never heard of a singular.php template file. It's not mentioned in the documentation neither.
    – Geert
    Commented Oct 21, 2011 at 9:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.