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











Unfortunately, it looks like it’s a bug in WordPress – it happens if you set another page to show blog posts in the Reading Settings of the control panel.
Saying that, I’ve added something in the code that instead of adding “current_page_item” to the current page, it adds “current_page_parent”. If you upgrade to version 1.5, you should be able to style your current link.
Not perfect, but I can’t do any more than that I’m afraid!
Rich, Thank you very much, that fix using the current_page_parent tag works well for me. I had tried this on the previous version but obviously it pointed to the blog page but now it is in the correct place.
Extremely useful plug-in (I am using it in WP3.0 by the way).
There is an obvious next step for this plugin but it will take more work. That is to support custom post types. ie. allow a page to show a custom post type rather than a category or tag.
Any plans for this?
Always looking for new ideas – thanks for the suggestion.
When you say custom post types – do you mean custom fields? or something else?
Hi There
This plugin looks to do exactly what I want – however, minor problem I can’t figure out. Even thought I only select one category to show on a page, (“news” on News page), all categories of posts are displaying (“recipes” etc.).
(Site is still in localhost dev.) Using PHP 5.2.6
????Help?
PS. Theme base is Fluid-blue.
One more thing. It works fine on one page (“recipes” on Recipes page) but the News page is still showing ALL posts.
I mean the new custom definable post types in WP3. In the same way as for categories or tags it makes sense to list these different post types on a separate page to the main blog.
Hi,
This plug-in sounds perfect what I need to achieve. Currently running wordpress 3.0.1, installed the plug-in and activated it but when I go to settings/pages posts I can’t adjust anything through the drop down menus. e.g. in the drop down menu for Page name it only displays ‘Please choose a page’ and the Category drop down only has ‘all’ available. Tried to add page but nothing happens.
Do I need to something else apart from installing the plug-in and activating?
Any ideas why this might be happening?
tahnks
Hi,
Great plugin!
I noticed the same problem that Chad (posting on 7/17) found. The problem turns on and off with the plugin. I have a need for this plugin on a client site, but I don’t want to turn it on unless I can get the display bug fixed.
I scrutinized the dashboard using Firebug and couldn’t figure out what is different. It is consistent across browsers (Chrome, Firefox, and IE 7).
I posted a screen shot on my site for you (http://maxim650.com/page-post-dashboard-issue/).
It’s probably a little thing, but finding it? Thanks again for the useful plugin.
Thanks for the screenshot – very helpful!
Apologies for the bug – I’ve since found it and eliminated it – if you upgrade to version 1.6, all will be well again!
Rich,
Thank you for the prompt response and repair! I just finished installing this on my client’s site and it’s working beautifully.
Have a super week!
Todd
This looks like just what the doctor ordered. I have one request, though, unless there’s a way to accomplish this that I’m not seeing, and that’s to limit the number of posts displayed to some specified number.
My intention is to use it to put a small number of posts on my front page, newsy kinds of things, that I’ll tag or categorize as ‘frontpage’ or the like. I can work around not having a limit by removing the tag from older posts, but that seems like unnecessary extra work.
At first glance, it seems like it’d be easy enough: initialize $count to the min of the actual count and the limit value.
Slightly off topic: my previous comment was moderated. When it was released, I got an email message. This is it in its entirety:
Hello ,
Your comment on the post has been approved and can now be viewed at:
Hmm, that didn’t work. Again with some encoding:
Hello ,
Your comment on the post has been approved and can now be viewed at:
</comment-page-/#comment->
(The last two email notifications looked OK.)
Back to business.
Here’s my front page: http://prfound.org/
Here’s a (pretty much) clone of the front page, with Pages-Posts added, and an hr at the end of the text to mark the boundary: http://prfound.org/resources/droop/front/
Notice that the margins have gotten messed up. I haven’t looked at exactly what’s happening in the markup to cause that, but it’s consistent.
I’m wondering: would it be possible to implement Pages Posts as a widget? I’ve got a place at the bottom of the text area where I could put one.
Hi Jonathan – glad those last 2 email notifications looked ok..
I’m looking at doing some dev work on Pages Posts – what kind of thing are you looking at as a widget? Post title, excerpt? How much data would you want to see?
I’m new to WP Pages. (I’ve used WP for a long time for a personal blog, http://pragmatos.net, but just recently moved http://prfound.org from Expression Engine to WP, Pages & PageLine’s WhitehousePro theme.) So I don’t have a terribly precise idea of what I’m after. But what the heck….
As you can see, prfound is a small but Page-intensive site, with a regular WP blog page incorporated as an interior link. I’m envisioning a widget on the front page, possibly on the right sidebar, but more likely in a sidebar not now visible under the main text. It would contain the last N posts from the main blog (I’m thinking maybe 3 or so) as a convenient way of keeping the front page current: news, events, that kind of thing. So the last N posts with some category or tag.
Assuming that I could have more than one such widget, I might put a second one on the right sidebar with an “events” or “calendar” function, distinguished by category/tag. So events on the right, news below.
I’ve been thinking whole posts, though I suppose I could see a role for an excerpt or even titles, given such a capability. But that’s really beyond the scope I was originally thinking of.
This is all do-able, but maybe beyond the scope of Pages Posts…
I’m going to look into it though, it might be that I create a new plugin – or maybe its an extension to this one… who knows..
But I’ll definitely do something – watch this space !!
I will, thanks. With all the widget-based themes these days, a widget would be v. handy.