Jump to content
Sign in to follow this  
makeylon

How to do a Post Page on single category?

Recommended Posts

makeylon

I've set up a category posts page at: Japanese Candlesticks The way I did this was to create a Page with the following code (and php-exec installed):

	<?php
	query_posts('showposts=0&cat=116&order=asc');
	if (have_posts()) : while (have_posts()) : the_post();
		?>
	<b><a href="<?php the_permalink() ?>"><?php the_title() ?></a></b>
			<?php the_excerpt() ?>
		<?php endwhile; endif; ?>
	<?php wp_reset_query(); ?>
	

However, the navigation isn't appearing. I do have PageNavi installed. Currently I have the posts set to display 5 (in Reading settings) so only 5 posts are displayed while there are currently 11 posts in that category. How do I get the navigation to show so I can access the other posts?

Share this post


Link to post
Share on other sites
makeylon

Well, I tried that, and it puts Page 1 2 down on the bottom, but when I click on page 2 it is empty of content, and with 5 posts to a page, 11 posts total, there should be three pages. So, that doesn't seem to be working.

Share this post


Link to post
Share on other sites
makeylon

I've used your code as shown in the other thread. My understanding is version 1.3.0 will have additional pagination support, so maybe I'll shelve this until after the weekend. With luck, the new version will do what I want it to without me having to hack it up. lol. (fingers crossed)

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  

×