Pro Theme Design Forum » General Banter

Adding Paged Navigation To Category Page


  • wtd
  • Member
  • Posted 2 years ago #

I found the earlier post about limiting the number of posts displayed under "more in this category". What would it take to ad paged navigation (newer entries/older entries) to that page such that the first 20 or so articles are displayed on one page, with the next 20 on another page and so on and so on?

Thanks,
Tony

  • morgan
  • Member
  • Posted 2 years ago #

That's something I really need to do as well. When you see all the posts of a category with the most recent story at the top and the rest below it, I don't want the list to keep growing forever the more articles I post.

I would like a way to only show about 20-30 posts as well (which I figured out how to do) and for the readers to be able to go to a previous page to read older articles as well.

It would be great if that second page looked like the first one.

How would I do that? Is there a code that I need to add?

Thanks!

  • darren
  • admin
  • Posted 2 years ago #

Re: adding pagination to non-standard loops, would this work?

http://www.darrenhoyt.com/2008/02/02/combining-featured-posts-with-the-standard-loop/

  • robin
  • Member
  • Posted 2 years ago #

Same problem here, I also want to display about 20 articles per category, this is possible but it doesn't allow you to go to the next or previous page because there is no link. the only way then to show all your posts under a category is to let the list grow and grow which I don't like.

is there really no easier way to get something basic like this implemented?

  • morgan
  • Member
  • Posted 2 years ago #

I tried using the link you provided darren, but I'm not really sure what code to put in.

I tried using this, but the pages wouldn't work. I would just stay on page number one.

<?php
if (is_home()) {
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts("cat=-15&paged=$paged");
}
?>

<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
</div>

What would be great is to be able to have multiple pages while retaining the same look from the first page. So on each page there is a lead story, which is the first story from that page. If that makes sense.

Any help would be greatly appreciated.

  • robin
  • Member
  • Posted 2 years ago #

Is this not really something that should be included in the theme?

I mean, I have a category of over 100 posts and the page becomes endless long. Just to get it more organised it should display let's say 20 posts and then have a "prev" or "next" option.

Almost every blog and especially premium paid themes have this option, why can't we have it?

If it were simple I would just include it myself but I get a prev and next link but nothing happens when I click.

  • darren
  • admin
  • Posted 2 years ago #

I'll take a look this weekend. The code from the link I provided should do the trick, with a few tweaks. I've also put it on the list for the next round of upgrades.

  • Swade
  • Member
  • Posted 2 years ago #

Please add me to the list of the needy on this one, only I'd like to use it on the front page of the site as well categories etc.

I tried your code, Darren, but I couldn't get anything to show. I've moved the carousel down to just above the footer, would that effect things?

My test site: http://www.saab93viggen.com

I really need this pagination if at all possible as it's a feature my readers are quite accustomed to.

Cheers,

SW

maybe someone solve this problem...

I have a website with hundreds of posts under a category, but I don't want a looooooooong list of titles but a pagination.

I tried to use WP PageNavi plugin but it didn't work at all.

Can someone help me?

  • darren
  • admin
  • Posted 2 years ago #

It's on the list for the next set of upgrades, hopefully due out in the next couple weeks.

  • wtd
  • Member
  • Posted 1 year ago #

Has anything ever come of this?

We are definitely adding this to an upcoming theme and in the meantime I will speak with Ben about releasing a quick upgrade as well. If we can't get the upgrade out, we could always just email you the code.

If it doesn't make it into a quick upgrade, and the code is mailed out, can you please include me in that mailing?

Sounds like Ben is going to work on this this week. Sorry for the delay, we are actually working on a new theme which will have all the same features as MP but a bunch of nice upgrades also. It will be available at a deep discount for those who've already purchased the theme.

Does this mean that MimboPro is going away, or that you will now have 2 themes?

I'm really happy with MimboPro, and as a new user (one week), I'm concerned.

Any idea on with the new theme will be released? In the mean time I guess I will work on the paging issue myself.

I figured it out. I will be posting the modification on my blog tonight. I will post the link here as well.

  • Ben
  • Ben
  • Posted 1 year ago #

Mimbo Pro will not be going away - we are working on an addition to the Mimbo family targeted at web developers.

I added the patched files and instructions over at my blog
http://joshhighland.com/blog/2008/12/08/modifying-mimbopro-to-add-paged-navigation-to-category-pages/

Please post in the comments if you have questions

If you enjoy the hack, give it some digg love
http://digg.com/mods/Hacking_the_Wordress_theme_MimboPro_to_add_paged_blogs

Great work on this Josh, and sorry again for the delays. Ben and I were able to roll out more upgrades last spring when there was more time, but both of us have been up to our necks with full-time work in recent months.

Again, we'll have this feature and a handful of nice improvements in the next theme Ben mentioned, scheduled tentatively for early January.

Thank you Josh for sharing this tip

:-)

Reply »

You must log in to post.