How to create custom page template in WordPress

Custom page template should be used when you want a different layout on any page. There can be multiple reasons for actual uses in your site created on wordpress. This is simple and can be done by following below steps , you just need simple knowledge about php, html and css. 1. Create template file, let us take the example of creating a template where we can display all the posts from a particular category. Also User should be able to navigate easily to each post of that category. a) Create a template file and add the below code,

b) Few things to note down which are following, i. Template name must be defined and same name will appear on page while choosing the template ii. Be cautious while writing the php code mixed with html code as these have different syntax iii. Above code is used to display… Read more“How to create custom page template in WordPress”