[SOLVED] Edit Wordpress Category Page to just display Post titles???
Hi, Does anyone know how I can edit Wordpress Category Pages to just display the Post titles held within that category and none of the post content?
I tried a few different manual edits and found this plugin - http://wordpress.org/extend/plugins/...ategory-posts/ which has very little instructions. nothing working so far. please help if you can Thanks |
there is another plugin http://wordpress.org/extend/plugins/page2cat/ that may do what you want
just add the short code [catlist=xx] where nn is the category id and it will list all the posts in that category and each post title will be a link to the post. |
Thanks for the help juggledad. so using this plugin i have to make a page for each category so that basically my page menu replaces my category menu?
Is there no way of editing the category template to just show titles? I tried some of the tips from Flynn in this thread but no luck. Quote:
|
I'm interested in this question. I'm trying to have a different aspect for the categories 1 and 30 : I'd like to see only the posts titles, not the images and excerpts (which are shown for all the other categories)
With my former WP theme I created 2 files : category-1.php and category-30.php and it worked fine, but with atahualpa nothing worked (I think the code I put was far too basic to work with the theme). So I'd like to find a solution to have a different display for those 2 categories. If anyone has an idea, please post. WP 2.9.1 Atahualpa 3.4.4 http://www.lebardessciences.com |
Ok, I tried to add
HTML Code:
<?php if ( !is_category(1) AND !is_category(30)){ ?> HTML Code:
<?php bfa_post_bodycopy('<div class="post-bodycopy clearfix">','</div>'); ?> |
negative logic always seems counter intutivative. The '!' is a NOT, so when you say
if ( !is_category(1) OR !is_category(30)) you are saying 'If this is NOT category 1 OR it is NOT category 30 ......' while this will be true for category 5, it is also true for category 1 (cat 1 is NOT cat 30) and categore 30 (cat 30 is not cat 1) when you change to the AND, so it look like this if ( !is_category(1) AND !is_category(30)) you are saying ''If this is NOT category 1 AND it is NOT category 30 ......' so cat 5 causes this to be true (cat 5 is not cat 1 and cat 5 is not cat 30) cat 1 is false (cat 1 IS cat 1) and cat 30 is false (cat 30 IS cat 30) so those two cases are teh only two that will cause a false case for this if statement. |
OK, I give up. I've tried page2cat and category pages and the category extender, but I have no clue where to put [catlist=xx] or nn in order to have ALL of my posts (recipes) appear on one page. I tried adding code in the loop (after bodycopy clearfix, following your instructions in a separate thread) using the page and category numbers, but that returned all sorts of errors.
Any ideas (please)? Thanks. |
You could probably accomplish this using another plugin: http://wordpress.org/extend/plugins/azindex/
I used it here to show all of the obituaries, and it's updated automatically when a new one is posted. |
Yes, yes, yes! Thank you so much. That's exactly what I needed, and I was able to set everything up in about 15 minutes. :)
|
All times are GMT -6. The time now is 05:20 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.