View Full Version : Wordpress plugin
Masetek
02-20-2006, 06:38 AM
Does anyone know the name of the wordpress plugin that creates a list of your posts in a category instead of just displaying them one after the other? I want it so that when someone clicks on a category they just get a list of posts from that category.
I'm sure Ive seen one...and sifting through the WP site is a nightmare
michael_gersitz
02-20-2006, 02:29 PM
Its built in...
http://codex.wordpress.org/Template_Tags
Masetek
03-07-2006, 07:14 PM
Can someone tell me in more detail how to do this?
cheers
ses5909
03-07-2006, 07:51 PM
Wheres your blog located at? Can you point to another blog that has what you are looking for exactly? I'm wondering if you are really referring to categories, because they are built in.
Johnny Gulag
03-07-2006, 08:31 PM
Hello
Yes, Sara is correct, if all you want is to display a list of the categories that you have added posts to then just add this to the sidebar.php file or wherever you want it to appear.
<ul>
<?php wp_list_cats('sort_column=name&optioncount=1&exclude=10, 15'); ?>
</ul>That will display the categories by name with the number of posts in each category next to it and exclude the categories with the ID's of 10 and 15.
Should you not want to exclude categories you can remove the part for that:
<ul>
<?php wp_list_cats('sort_column=name&optioncount=1'); ?>
</ul> You can find more on this page: http://codex.wordpress.org/Template_Tags/wp_list_cats
Hope it helps :)
ozgression
03-07-2006, 10:18 PM
I don't think that's what he is asking. I believe he wants to list permalinks to the articles in a category instead of displaying the full articles.
Eg... the /entertainment/ category will show a lists of links to the posts, instead of the whole thing.
Masetek, I would have thought this would be possible by editing the category template?
Masetek
03-07-2006, 10:19 PM
That's not really what im after :)
I have a list of categories, that's no worries. But what Im after is when someone clicks on a category, instead of getting all the posts I have made for that category one after the other they get a list of links which link to the posts permalink. Make sense?
My blog is here (http://www.muscleandstrength.com/blog/)
:) thanx
Johnny Gulag
03-07-2006, 10:44 PM
Hello
I think I understand now. Sorry for my slowness. :blush: I tried to find a way to do this for one of my blogs. The only thing I found was this: http://codex.wordpress.org/Template_Tags/get_posts I decided against it, because I am not sure what I was doing with it, is what it is meant to do, though it did work. :)
There may be a better way alltogether but I could not find it. if you do please let me know. ;) :D
Johnny Gulag
03-07-2006, 11:14 PM
hello
I found this, I think it will do what we both want. :blush:
http://wp-plugins.net/plugin/wp_category_posts/
Masetek
03-08-2006, 12:35 AM
Nice one :) That's pretty much spot on. Do you know how to implement it? I tested it and it works, I'm not sure which template/file I have to edit for each category to get it sorted?
Johnny Gulag
03-08-2006, 02:16 AM
Well it is interesting you ask! :lol: I have made it work by placing it inside my archive.php file and also my sidebar.php file.
Though I got to reading the help file that came with it and found this at the bottom:
If you use a plugin like PHP Exec (http://priyadi.net/archives/2005/03/02/wordpress-php-exec-plugin/)
you can easily use the WP Category Posts plugin inside of a WordPress "page" to create a specific archive page. So I dloaded and installed that plug in as well, and then made a "page" to use that snippet on, following every instruction.
When it did not work, I tried everything I could think of to make it work. :crash:
Though as you can see here: http://metalpedia.com/death-metal/ it just displays the actual php snippet used for the plug in above, so I gave up for now. :sick:
If anyone has any idea why this is not working. I have checked every possibility and all seems to be correct except it does not work :redface:
Masetek
03-08-2006, 04:54 AM
LOL - I am getting the exact same problem! :nod:
ozgression
03-12-2006, 01:36 AM
Yeah, I can't get php exec working either. Has anyone confirmed that it even works with wordpress 2.0?
MarkB
03-12-2006, 01:59 AM
I'm sure you could just modify your main page template so if it's a category, to only show a certain post style, by using the
if (is_category())
loop?
Johnny Gulag
03-12-2006, 02:02 AM
Yeah, I can't get php exec working either. Has anyone confirmed that it even works with wordpress 2.0?
I am assuming that must be the issue. :(
Johnny Gulag
03-12-2006, 02:09 AM
Though after reading through the comments I see that someone has made an updated version of it to work with WP 2.0+:
http://zam.web.ugm.ac.id/projects/wp/plugins/
http://zam.web.ugm.ac.id/projects/wp/plugins/PHPExec-patched.zip
I have tested it and it works. :)
Masetek
03-12-2006, 06:06 AM
I'm sure you could just modify your main page template so if it's a category, to only show a certain post style, by using the
if (is_category())
loop?
I'll look into that. When I started this thread I new nothing about WP, now Ive skinned a few blogs and I *sort of* know what Im doing. Should be able to figure it out.
If I get it working I'll post here :wave:
Edit: Just saw Johnnys post. Thanks for that Johnny, nice one :D
ozgression
03-12-2006, 06:46 PM
Nice find Johnny Gulag. Thanks!
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.