Recently we needed to design and develop a usage blog pole template for our Web Design& Development Conferences to Attend in 2020 article now on 1stWebDesigner. Rather than time stick with the same layout we use on all of our blog positions and simply creating a long list of links to the various discussions throughout the year, we wanted to give this particular post a different, more user-friendly layout, with every month of the year as its own section and a multi-column grid that would display up to three towers per sequence. Click on the link above to see what the hell is came up with.
Because we had not exercised a habit blog berth template like this before, we had to figure out how to make it happen, and, in doing so, recognise this would be a great tip to share with our readers so that you too could implement this methodology should the need arise.
UNLIMITED DOWNLOADS: 500,000+ WordPress& Design Asset
Sign up for Envato Constituent and get unlimited downloads starting at simply $16.50 per month!
Why Would You Use A Custom Blog Post Template?
In our event, it cleared excellent appreciation to use a custom-built blog announce template because we had hundreds of conferences to share and listing them out with just plain text and links would not only be accepting visually, it “wouldve been” be too long to browse through in that format. You may require a particular post to stand out from the rest of your sections, you may have a series of poles that you want to have a consistent layout within the series that is different from your standard uprights, or you may have a need to display a certain post’s content differently than others because of what that content consists of, as was our occurrence. Custom blog post templates can be allocated on a per-post basis, used once or multiple times, and you can also have as many different templates as you want.
Thankfully, the capability to create and use custom templates for blog berths is built right into WordPress, and is very similar to creating custom page templates. So let’s dive in and see how simple it can be!
How To Create Your Custom Blog Post Template
There are some differences you may encounter depending on the topic you’re working, but the basics are the same regardless. If you are not already expending a child theme, you will need to create one, unless you are using a habit theme of some type, otherwise if you ever upgrade the mother topic you will lose the work you are doing here. Here’s a good article on how to create a child theme.
Once you have your child or custom-made topic, you will need to create a new register in root causes of your topic( progeny or practice) folder, and appoint it whatever you crave. In our bag we specified ours conferences.php. It is not possible to required specifying gathering now- merely use whatever will help you know what that record is for.
In your code editor, contribute the following code to your brand-new folder in the very beginnings, ousting the template specify with your desired name. The second front tells WordPress where this template will be used( on poles , not pages ). The last-place row is just a comment for our own personal give, so you can delete or supplement your own comment as desired.
Once you save this folder, you will see now see your new announce template in the Template dropdown of the Post Attributes meta box on a upright revise screen, as shown in the screenshot below.
The next gradation is to either simulate over the contents of your theme’s single.php file into your new custom-made blog affix template register and start editing and customizing as craved, or you can start from scratch( as we did) if your brand-new layout is going to be radically different from your standard posts.
Voila! That’s It!
We’re not going to get into the coding of the whole template, as that will greatly vary depending on your requirements and the topic you’re using, but this simple little method will get you started on your highway to creating your own custom blog post template in WordPress. Now you can go crazy creating all the customization you require! Have fun!
Cover photo courtesy of ShotStash.
Read more: 1stwebdesigner.com.