Pages Posts
*** Please note that from version 2.0, the default template used will be index.php (the home page template), rather than archive.php or category.php ***
Plugin Info
Plugin Name: Pages Posts
Plugin URI: http://redyellow.co.uk/plugins/pages-posts/
Download URI: http://wordpress.org/extend/plugins/pages-posts/
Description: Amend pages and put posts inside them – either by category or tag
Author: Rich Gubby
Version: 2.0
Author URI:http://redyellow.co.uk/
Ever wanted different pages on your blog to display different types of post? You might have news and changelog pages and want to display categorized posts in each one.
With Pages Posts you can! You can configure a page to display posts only from a specific category or tag.
Installation
- To install through WordPress Control Panel:
- Click “Plugins”, then “Add New”
- Enter “Pages Posts” as search term and click “Search Plugins”
- Click the “Install” link on the right hand side against “Pages Posts”
- Click the red “Install Now” button
- Click the “Activate Plugin” link
- To download and install manually:
- Upload the entire pages-posts folder to the /wp-content/plugins/ directory.
- Activate the plugin through the Plugins menu in WordPress.
The control panel of Pages Posts is in Settings (on WordPress 2.3.3 and under, Options).
FAQ
How do I configure a page to display posts?
Head over to the settings page and the top of the page gives you the ability to add a page. Select which page you want, whether it should only display posts from either a category or a tag, select which category or tag and click “Add Page”
Screenshots

Changelog
2.0
- Added compatibility with WordPress 3.0.3
- Added number of posts option
- Set a global var to specify when the plugin is being used (for theme mods): $IS_PAGES_POSTS
- Now uses home page template rather than either archive.php or category.php
1.6
- Fixed style issue with pagesposts.css
1.5
- Tested compatibility with WordPress 3.0.1
- Fixed bug with current_page_item class in menu – now shows as current_page_parent
1.4
- Further fix to bring back all pages -1 rather than false in the query
1.3
- Added ability to display the original post above your categorized/tagorized posts
1.2
- Fixed bug with not being able to select all pages – was only bringing back the last 5
1.1
- Added ability to have posts displaying as excerpts or full posts
1.0
- Added category and tag display capability











// Temporarily add this page to the page_for_posts setting
add_filter(‘pre_option_page_for_posts’, ‘pagesPostsMenu’);
How can i set the post id as current page id, but not for parent?
becuase, if current page is a subpage, the parent page can not be setted height line
Wanted to use this plug but when I go to the settings page I see none of the categories I have created to add to the pages. Is there a bug with this?
Thank You
Nicka
Hi Rich,
Great plug in but I can’t seem to select some of the categories I have to post to pages.
I’ve already added a number of post categories but not all of them are showing up in the Settings of your plugin.
Any suggestions?
Cheers,
Ken.
Oh don’t worry. I figured out you need to post something under that category before it shows up in the ‘Settings’ page.
Cheers! Awesome plugin again.
-Ken.
I’m using your plugin on a site I am building and noticed a strange behaviour when I set it to show pages as a home page.
I have another plugin that shows a particular (different) category in a widget on the sidebar, but the original text of the page is appearing in the main page before my posts and in the widget before my posts.
Is this a known issue, and is there any easy way to resolve it?
I have installed your patch on wordpress 3.0, but when I updated to 3.1 your plugin did not seem to work. Is there a work-around? Or do I simply need patience for your update? Thank you,
Randall
Thank you so much for this plug-in!! Now my website actually does what I want it to do. You’re my hero!
Hai,
Your plugin is great, I only have one problem with it. It sets my post in the right order, but starts alover with sidebar2 and the second post jumps to the left. In the code it’s not in the wrap, but outside. How can I change this?
Thanks already
Hi
i download your plugin but when configure the page, i´m go to page, it´s show in blank, can fix this?
Hi Rich,
Plug-in does exactly what I wanted with one exception that I’m hoping you can clue me in on. When viewing a page of posts, all of the HTML formatting within the post is removed. If you view the post itself by clicking on it, the formatting is perfect. Any thoughts/fixes?
-Peter
AWESOME plugin man.. exactly what I was looking for, pitty it didn`t worked for me
it is showing all post in both pages
.. maby it isn`t compatible with the new version of wordpress ?
Best regards, hope you fix the bug soon.
Will you be updating this plugin for WP 3.1.1?
Thanks,
Hi everyone. Just catching up with all of these comments…
I’m testing this on WP 3.1.1 and it all looks fine.. anyone got any instances of it not working in the wild?
Hey There,
Love the idea of your plug-in, it’s exactly what I wanted to accomplish. My issue seems that it is not compatible with the Genesis Framework. It breaks down on my pages where i use Genesis Featured post widgets in the sidebar etc… Any other issues from other users? Anything in the works on an updated version? I appreciate any support
Hi! I’m having a problem with the plugin – on the pages I’ve applied it to, the page title no longer displays … and if there is pre-existing content in the page, it displays before the posts, but completely stripped of formatting.
The front page at http://www.huzzahtestsite1.com/ is a good example.
Thanks, Trini
Working for me, but when I use the option to “Show original page text before posts” it breaks down any formatting (how i intended it to look when publishing). Can you tell me how I could maintain the page formatting, so that I can keep a consistant appearance on the site
Thanks, this plugin is very cool.
google adsense…
[...]Pages Posts | Red Yellow[...]…
Please Healp me…
Fatal error: Call to a member function have_posts() on a non-object in /home/mypallam/public_html/wp-includes/query.php on line 734
im using WordPress 3.2.1.
This was working fine for me. It suddenly stopped showing all my pages to choose from in the settings. I had a contest category that I was posting to one particular page. Now I can’t get that page to show up in list.
My situation is this: I wish to build some database type sites using WP and need to figure out how to make WordPress act more like a static site and show a logical index of all post. I wish to build sites with thousands of pages. You know that WordPress does not handle this well. It may handle it if some one comes to your site’s home page they will not be able to navigate to any of your pages they want due to pagination etc.
Who is going to click through 100 paginated post listings in order to find every post. Google will but regular people will not bother thus WordPress kind of sucks for this use if you want people to be able to actually navigate your site instead of just coming in via Google.
This is where your plugin comes in. It seems to work so far but I have only done light testing – not 1000 page sites yet. This is what I need your plugin to do – have an option to only show the post heading without any post text. This would be like a site map or site index – exactly what I need.
This is because I plan on each index page having many hundreds of post listed on it. So how about this option for your next version of this plugin? The option to only show the post header and no post text. Thanks.
PS, if there is another way to accomplish this without modding your plugin I would appreciate you letting me know. I also have some other plugins I need, if you write plugins for people let me know,