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

  1. 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
  2. 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

Screenshot 1

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

139 Responses to “Pages Posts”

  1. There’s a widget plugin “Posts by Tag” that might do the trick. We’ll see.

  2. Rich Gubby says:

    That was where I was going to take a look first, to see if there was already a plugin that fitted the bill.

    If it’s not a good match, let me know and I’ll see what I can do!

  3. I love this plug in but I would really like the oldest posts to display first. Is there any way to make that happen?

  4. I have installed this on two websites and set both to post the full post rather than just an excerpt. On one, the post and photo show up for each post. On the other, only an excerpt shows up and an occasional photo. How can I get it to display the full post? That is what is selected.

  5. Priscilla says:

    Hi
    I installed the pages posts and tried but found it has a like Archieved from Category “category_name” on the top of the page.

    How I can remove this line? Please kindly advise.

    Thanks & Best Regards
    Priscilla

  6. Priscilla says:

    Hi
    I’ve just want to let you know I finally found the way to remove that header. It’s actually come from the archive.php
    BTW, sorry for some typo of my previous message.

    Thanks & Best Regards
    Priscilla

  7. baseer says:

    i love this plug its really working very well with one of my project

  8. Iosif says:

    Hi. My page shows the posts that I want, but the template is not working now. what can I do? It looks like it’s canceling the template. Please help!!!

    Thank you!!

  9. wstang says:

    Hi,
    I installed and activated page post, but noticed there’s a “browsing category…”line at the top of the page just before most recent post. did anyone encounter a similar issue? thanks in advance!!

  10. Dax says:

    Hi!
    I’m having trouble with the plugin. When I open the page with posts I get all post not from the desired category.
    There’s also an error saying: Fatal error: Call to a member function get_queried_object() on a non-object in /home/****/public_html/new/wp-includes/query.php on line 254

    How can I fix that?

  11. Rich Gubby says:

    @Dax – which version of wordpress are you running?

  12. Rich Gubby says:

    @wstang – thats your archive template. Have a look in either archive.php or archives.php in your theme and you’ll see that bit of text!

  13. Dax says:

    @Rich – I’m using wordpress 3.0.1

  14. AC says:

    I’m also having the problem of my full post not displaying even though I have selected the option from the settings page. Can you help?

  15. Javier says:

    I am having trouble with my full post publishing on a page. The only place that shows the full post is in the sidebar under recent post. This is not where I want the full post to show. If this can be fixed your plugin will be perfect for me and you will have single handedly improved the quality of life of a single person in this world. Perhaps two since AC seems to be having a similar issue.

    Thanks,
    Javier

  16. Ashley says:

    When I try to set up this, I go to add a new page, and none of my Categories or Tags show up in the drop down menu. What do I do?

  17. Hapache says:

    Hello,

    nice plug in with a “mandatory” functionnality (should be native in wordpress no?).
    But I have a problem.
    I put some layout in my posts, like colors, and this is working correctly in the home page but on the specfic pages where I use pages-posts to show posts from specifics categories, the layout is no more present.

    do somebody can help me

    Thanks
    Wordpress 3.0.1 french / basic twenty ten wordpress template
    Hapache

  18. Richard says:

    Love the plugin, use it on multiple sites… definitely a “must have” in WordPress.
    One question… can you modify the plugin or send me code to allow “Sticky” posts to show at the top just like how they would on the WP Index page.

  19. Rich Gubby says:

    @Ashley – are your categories & tags already in use? You have to make sure you have at least 1 post in them before they appear in the drop down!

  20. Rich Gubby says:

    @Hapache Check out the archive.php (or archives.php) file for the layout – the pages posts plugin makes the page act like an archive..

Leave a Reply