Jump to content
Sign in to follow this  
trevis

Page with all posts of a category.

Recommended Posts

trevis

Hello, all right? I'm using iBlogPro and would like to create a template page for show the posts from a particular category. I followed the instructions codex.wordpress.org/Page but the page was not with the look-and-feel of the theme. Can you help? Regards,

Share this post


Link to post
Share on other sites
jnoh

Hey Rafael, You can use the Page Links To plugin to redirect pages to the blog category pages. Would that work for you?

Share this post


Link to post
Share on other sites
trevis

[sOLVED] After researching quite found a way to do what he wanted. I present to you the solution. 1. I created a php file within the. / Wp-content / themes / iBlogPro with following content:

<?php
	if(VPRO) {
	/*
		Template Name: Category Posts
	*/
	}
	?>
	
	<?php get_header(); ?>
	
	<!-- ?php require(LIB.'/template_page.php');? -->
	
	<?php get_sidebar(); ?>
	
	<?php query_posts(array('category__in' => array(5,6,7)),'showposts=10'); ?>
	<div id="left-col">
	<?php require(LIB.'/_posts.php');?>
	</div> <!-- end content -->
	<div class="clear"></div>
	
	<?php get_footer(); ?>

That done, I created a page with this template and got what I wanted. [] s,

Share this post


Link to post
Share on other sites
jnoh

Rafael, very awesome. Glad you figured it out. Can you supply a live link. I'd love to take a look at your masterpiece.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×