|
|
|||||||
| Register | FAQ | Calendar | Radio and TV | NP Shop | Search | Today's Posts | Mark Forums Read |
| Blogging Forum Blogging Discussion Forum, links and tools. |
![]() |
![]() |
![]() |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Me you cannot pass
Join Date: Mar 2007
Location: East
Posts: 748
Points: 155
|
post count per category on wordpress
anybody know how i can get the post count per category on wordpress?
i want to put something like "27 posts in hardcore sex" on my wordpress category archives. thanks in advance ![]() |
|
|
|
|
|
#2 (permalink) |
|
Yes, that's a Harry Potter book
|
I've seen it on some templates, can't recall where off the top of my head. I would go to a WP template site and download one that has it (it's usually in the format of category name (postnumber)). Once you have the template, just take a look at the code to see which variable they're using and use it anyway you like.
__________________
Glass Mannequin real amateurs, real kinkiness and non-saturated - now with AWESOME blog feeds! Gay Traffic? ZBuckz high conversions |
|
|
|
|
|
#5 (permalink) |
|
Yep, I made this animation myself
Join Date: Apr 2004
Posts: 9,420
Points: 75
|
Yeah, showposts=1 in query posts seems to do it.
You can add a custom template by dropping a file called category-n.php (where n is the category you want to use) and put query posts in the loop So take category 12 , copy archive.php and put in <?php query_posts ("cat=12&showposts=5"); ?> and call it category-12.php and it will show 5 posts (I just tinkered with it, you have to repeat the category in query posts because it overrides the info provided by the url string, there's probably a better way to do it but this works) All the other categories use the default template |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
![]() |
![]() |