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 » Plugins & Atahualpa »

[How To] modify 'Category Page' aka page2cat to display posts instead of just titles


 
Prev Previous Post   Next Post Next
  #1  
Old Aug 14, 2009, 05:33 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
[How To] modify 'Category Page' aka page2cat to display posts instead of just titles

While this plugin 'Category Page' aka page2cat (version 2.5 - get it at http://wordpress.org/extend/plugins/page2cat/) seems to be gathering dust (last update 3/29/2008) it still works, but the way it works is it lists just the titles (as links) of a category on a page. Most people seem to want to be able to list the entire post. You can do that by making a slight change to the plugin.

Edit the plugin lines 618-620 and change them from:
HTML Code:
   foreach($catposts as $single):
         $output .= "<li><a href='".get_permalink($single->ID)."'>".$single->post_title."</a></li>";
    endforeach;
to
HTML Code:
   foreach($catposts as $single):
        query_posts('cat='.$v0.'&showposts='.get_option('posts_per_page'));
   endforeach;
That all it takes.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Nov 30, 2009 at 06:56 PM.
 

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Display posts alphabetically for one category, chronologically for other categories spencer Atahualpa 3 Wordpress theme 4 Jul 16, 2014 09:01 AM
[SOLVED] Display post title only of a category in a page ladylulu Page & Category Menu Bars 9 Mar 1, 2011 08:02 AM
Display only one category page as excerpts adelante Excerpts, Read more, Pagination 5 Nov 9, 2009 03:21 PM
how to horizontally display the Category Posts Widget ? bryan85 Plugins & Atahualpa 0 Sep 6, 2009 06:28 PM
[SOLVED] Category pages - page2cat or templates? mcphoto Page & Category Menu Bars 10 May 20, 2009 08:16 AM


All times are GMT -6. The time now is 05:49 PM.


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