Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have created a separate page called service.php with following code

<?php /* Template Name: services */ ?>
......//code
......

So the above page now acts as separate static page.
Now I want to assign a particular post for this service page in WordPress.

Is it possible to do that?

Kindly advise me on this.

share|improve this question
add comment

1 Answer

Pages can have templates, but not posts. You have created a custom page template. There is no out-of-the-box way to have a post template, but there is a highly rated plugin called Custom Post Template that will do what I think you want to do.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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