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

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

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.


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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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