November 29, 201015 yr I know the normal way to do this would be to set the 'posts page' to the Blog page within the wp-admin readining settings, but i have to leave this blank as i have categories setting the posts to go to all sorts of posts:- Accessories - Hats - Shoes - Etc But i also need to intergrate a Blog. My Blog is a Page found on the main navigation, but i dont know how to get 'blog posts' only to go to this specific Blog Page? As i cant add categories like you can for the posts? Any ideas? Probably a simple answer?
December 2, 201015 yr Edit: Didnt read the question :facepalm: Read: http://codex.wordpress.org/Pages and refer to "A Page of Posts". Is that what you mean?
December 6, 201015 yr Author I hate to say this, but I don't understand the question. I got confused about half-way through. Take a break for a few minutes and figure out how you would explain it to your mom. And have a pint to take the edge off: it'll help. Moron!
December 9, 201015 yr Let's try and keep things civil folks. If you can't help the OP, then perhaps it's best to refrain from posting in this thread - and please try to refrain from calling each other names. WDF just ain't that kind of party!
December 10, 201015 yr First thing is copy your index.php into a new file and call it blog-template.php At the top of the file add the following: <?php /* Template Name: Blog Template */ ?> Now we need to edit the wordpress code, find the following: <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> Add the following in front of that <?php query_posts('category_name=category'); ?> Look for this code: <?php endif; ?> Add the following after it <?php wp_reset_query(); ?> Change category to the name of the blog category. Now upload the file to your theme files e.g. /wp-content/themes/theme-name. Now go to your blog page, and on the right hand side it will say template: Use the drop down and find the blog template. Save that and now any posts made in the blog category will appear on that page. Hope that helps
Create an account or sign in to comment