Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Forum How-To (http://forum.bytesforall.com/forumdisplay.php?f=9)
-   -   multiple post pages (http://forum.bytesforall.com/showthread.php?t=2151)

michael close Jun 23, 2009 06:50 AM

multiple post pages
 
Is there a way to have multiple post pages. I would like to have a page for each of 3 major contributors and another for the rest. I have built a clone of website(static pages) i have using wordpress and just need to add the blog part.http://forum.bytesforall.com/images/...s/confused.gif

juggledad Jun 23, 2009 07:38 AM

you could create posts for the major contributers and assign the post to a category and call the category 'BigDoners'. Then create a page for that category

michael close Jun 23, 2009 03:40 PM

you could create posts for the major contributers and assign the post to a category and call the category 'BigDoners'. Then create a page for that category.

I understand doing the categories but how do i create a second posts page in wordpress? Is there a way to do it in Atahualpa 3.3.3. Wen i go to settings in wordpress, reading settings i can select a front page or a posts page. Posts allows me to assign posts to a particular page but i don't see how to do it to a second one or third etc.
Thanks

juggledad Jun 23, 2009 07:03 PM

1) Down load the page2cat plugin
2) edit the page2cat.php and finde lthe following (line 616-621)
HTML Code:

                                foreach ($matches[1] as $key =>$v0) {
                                        $catposts = get_posts('category='.$v0."&numberposts=".$limit);
                                                foreach($catposts as $single):
                                                $output .= "<li><a href='".get_permalink($single->ID)."'>".$single->post_title."</a></li>";
                                                endforeach;

3) comment out the line:
HTML Code:

$output .= "<li><a href='".get_permalink($single->ID)."'>".$single->post_title."</a></li>";
by putting two '/' ('// $output...') in front of it.
4) add the following line after it
HTML Code:

query_posts('cat='.$v0.'&showposts='.get_option('posts_per_page'));
5) save your changes and install the page2cat folder into the plugin folder
6) create a page following the instructions in the plugin

Normally the plugin creates a list/link to all the posts in the category you specify. The little change I gave will cause it to display the post instead of the post/title and link.


All times are GMT -6. The time now is 10:17 AM.

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