Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Excerpts, Read more, Pagination »

[SOLVED] Edit Wordpress Category Page to just display Post titles???


  #1  
Old Jan 5, 2010, 01:16 PM
dennis wilson
 
2 posts · Jan 2010
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
  #2  
Old Jan 5, 2010, 03:09 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jan 5, 2010, 05:38 PM
dennis wilson
 
2 posts · Jan 2010
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:
Originally Posted by juggledad
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.
  #4  
Old Jan 20, 2010, 11:26 AM
vil2
 
13 posts · Jan 2010
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
  #5  
Old Jan 21, 2010, 03:22 AM
vil2
 
13 posts · Jan 2010
Ok, I tried to add

HTML Code:
<?php if ( !is_category(1) AND !is_category(30)){ ?>
....<?php } ?>
before and after this line in ATO

HTML Code:
<?php bfa_post_bodycopy('<div class="post-bodycopy clearfix">','</div>'); ?>
and it worked. I do not know why, but with OR (which seems more correct to me at first glance) nothing worked (plenty of error messages)
  #6  
Old Jan 21, 2010, 04:29 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Mar 3, 2010, 06:33 AM
SavvyBaker
 
9 posts · Jan 2010
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.
  #8  
Old Mar 3, 2010, 06:48 AM
paulae's Avatar
paulae
 
1,333 posts · Feb 2009
Wordpress 3.4.1, Atahualpa 3.7.7
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.
  #9  
Old Mar 3, 2010, 04:52 PM
SavvyBaker
 
9 posts · Jan 2010
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.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Display post title only of a category in a page ladylulu Page & Category Menu Bars 9 Mar 1, 2011 08:02 AM
[How To] modify 'Category Page' aka page2cat to display posts instead of just titles juggledad Plugins & Atahualpa 37 Jun 25, 2010 09:03 AM
Category Page Listing - How to display: Post Title only TotalBalance Excerpts, Read more, Pagination 16 Jan 27, 2010 12:22 PM
Display only post titles and publish date vincotek Post-Kicker, -Byline & -Footer 6 Sep 8, 2009 09:44 AM
How do I show | Category: Introduction | Leave a comment | Edit this post on a Page? PerryM Post-Kicker, -Byline & -Footer 2 Apr 17, 2009 09:03 PM


All times are GMT -6. The time now is 07:23 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.