Searching...
Wednesday 19 October 2016

Setting up the Blog Homepage in wordPress Theme



How to have a custom post types up and running let's take a look at how to set up an entire blog section for our site let's move all the different templates including ones that we use to list a blog posts to display a single blog post and to display an archive of different types of pups if we come back to her original static template we could see that we had a nice layout setup for blog section of the site is a two-column layout with a title excerpt images if we need and then some Med information that can go blow it followed by the post itself so what we're going to do now is work going to create a template that will control this blog listing page and that template is called home. PHP since it looks very similar to our single portfolio. PHP we're going to start with this template and save it as home. PHP template is very similar to our left sidebar template we're going to start with this and do a file save as for home. PHP we can remove this month at the top that tells what the template name is and since we're using the naming Convention of Home. PHP WordPress will know to use this template as the home page for a Blog so if we come back to her site and in the pages we need to make sure that we have a Blog Page that will add some content haircut and shave I remember when we set up our custom post type for the main portfolio page we selected a template however WordPress mom know that we automatically want to use the home. PHP template for this guy is coming in to customize and making sure that were telling it right here that are posts Pages going to be HD so we see them published app and now I'm late oops it looks like we set it up to have our static page I'm sorry we want this to be a lot there we go front page of static and post page is blocked and then we'll come back if we have to add blog to arm in your hair and after the about section then you come back and your site now we can see your blog and here we go we have our two blog posts that are entered in the back and if you added more or less blog post to see the show up however it's using the mark-up of just having a header tag and then the content below it so there's no one here that is going to the particular page correct for their particular post and if you come back to the temple that includes having a Lincoln some sort of excerpt and then a little metadata followed by the post itself but what data instead of the full post there so that you can see the different ways to do that so now let's jump into the next level of code that will be using for this template

0 comments:

Post a Comment