Filter Posts in Pages 2.3.3 (now with thumbnails)

On October 2, 2010 by admin
DOWNLOAD Free Update

Basically, a plugin that every blog should have. Unless you want to show all your posts from all the categories on the same page, you will need to filter your posts and choose which ones should show on your frontpage and on other pages…

Examples

  • On your homepage you want to display all the posts under the category “Frontpage”
  • You have a page “News” where you want to display all the posts under the category “News”
  • On another page “Media” you want to display all the posts under the categories “Music” and “Movies”
TRIAL VERSION

Description

Sometimes you may want to show on your posts page only those that belong to a limited group of categories, and maybe you want to show other posts categories on other pages.

This plugin provides a settings page where you can deselect the categories that you want to hide from your frontpage, and a tool to generate shortocodes to add to any other page.

The posts will be listed with excerpts or full content (it’s an option).

The posts will display the thumbnails (always, if they have one).

Note

When you paste the shortcode in a page you will notice that the style of your posts looks slightly different from your front page. That’s because on the front page posts are displayed by your theme, that styles the its own way. The plugin has no way to know which style your theme applies, so you are provided options (in the settings page) to style your posts, but still they can’t look exactly the same. If you want to be picky about it you can manually modify the source code to match your current theme, or if you want i can do it for you. That will take some work and some time, and i charge 10$ for that. All i need is access to your site as admin, to modify the plugin’s code.

  DOWNLOAD Free Update

Requirements

  • Tested with WordPress 3.3+
  • PHP 5.2+

Screenshots

The settings page is very simple and easy:

TRIAL VERSION

Versions

If you want to upgrade please go here.

2.3.2

Fixed “limit number of posts showing” not working

2.3.2

Bug fix

2.3.1

Fixed “Show full content” option

2.3.0

Added posts thumbnails

2.2.5

Fixed homepage filtering and warnings

2.2.4

Fixed shortcode generation

2.2.3

Fixed content and excerpt visualization

2.2.2

Fixed how to display shortcodes in the shortcode

2.2.1

Fixed conflict with custom menus

2.2.0

Fixed bug in WordPress 3.1

2.1.6

Show posts as full content or excerpt (when using shortcode)

2.1.5

Adapted to WordPress 3.1

2.1.4

  • The posts excerpts are now displayed automatically
  • Renamed the plugin from “WP Filter Post Categories” to “Filter Posts in Pages”, that makes more sense

2.1.3

Adjusted posts link style

2.1.2

Fixed bug: the plugin was blocking custom menu from displaying

2.1.1

Fixed bug

2.1.0

Added feature that allows you to style the tile of the posts

2.0.0

Added posts filter for any page of the blog/site. From settings you can set the filter and then just add the shortcode in the page where you want the filter to work.

1.0.0

First release, filter applies only to frontpage.

  DOWNLOAD Free Update
8 people like this post.

53 Responses to “Filter Posts in Pages 2.3.3 (now with thumbnails)”

  • This plugin does not generate the shortcode for me to post on a page other than the main page…. how do I get this to work?

    • When you click on “Save Changes” it generates the shortcode,
      as long as you check at least one category under “Other pages”.

      As you see the first section is for the homepage, the second is for other pages.
      Settings

  • Giles

    Thanks for this, its close to what I need. Is there any way to create a selection for individual pages instead of just “other pages”.

  • Hi Giles,
    it’s already like that. Under “Other Pages” you select the categories that you want to filter and then you generate the shortcode. It doesn’t mean that all the other pages will display those posts, but only the pages where you paste the shortcode.

    You can:
    - generate the shortcode for some categories and paste it on a page
    - check other categories and generate the shortcode again, and then paste it on another page etc.

  • Wow, this is great…it achieves what I had to do with theme hacks on the original site. My re-worked site will be much better because of this plugin.

    One question though, do you know if it’s possible to display the posts on individual pages as excerpts? My site is a product-based CMS, and the posts are specially formatted to look good as excerpts. Using your plugin, the posts come out in full.

    Other than this, thanks for a wonderful plugin…it should be standard WordPress stuff!

    • Hi Mike,
      yes if your posts have excerpts they will show under the post title!! You’re welcome and i’m glad that you like it.
      PS: you need to type the excerpt in your post admin page, but in the next version it will be automatic.

  • Christoph

    Hi,
    I encountered the problem with your plugin in combination with the Arthemia Premium theme (on WP 3.0.2) that on the home page (with the latest posts), the first (by alphabet) category was included in the title tag. I have used your plugin to exclude a different category from display on this home page.
    thanks

  • Cesar

    Thanks for the reply.

    Yes, that one.

    In my theme there are different page types. In the blog type pages short codes are not working, it directly filters using homepage selection.

    I would like to just use the short codes, without any predefined filtering.

    Thank you very much,

    César

  • Cesar

    Thanks for the reply.

    Yes, this Filter Posts in Pages plugin.

    In my theme there are different page types. In the blog type pages short codes are not working, it directly filters using homepage selection.

    I would like to just use the short codes, without any predefined filtering.

    Thank you very much,

    César

    • So i guess you can’t use any plugin that uses shortcodes? Maybe try to contact the author of the theme and ask how to make it work. I really don’t know the answer, maybe someone may respond here and let you know. I also suggest to ask your question here and maybe some visitor will be able to help you.
      Sorry that i can’t give you the answer :(

  • Cesar

    No, the shortcodes are working in other pages, not blog types.

    Just avoid the “home page” filtering that is set in the admin pannel, instead using the shortcodes all along the way, will certainly work.

  • Cesar

    The idea is to use a single filtering mechanism based on shortcodes, make it much simpler.

    This one works properly. The one that is messing things up is the “home page” dedicated mechanism.

    The idea would be just add short code the the home page, instead of having something predefined

    Thank you very much,

    César

    • The problem is that you can have a default homepage (that doesn’t appear in the list of pages in your admin area), or a physical page that you created and you set as homepage after. In the second case you can add the shortcode to that page. In the first case the homepage is detected by the plugin and filters the categories depending on what you checked.
      If it doesn’t work for you i’m afraid it’s a theme issue and you have to edit your index.php in the theme folder..

  • Cesar

    Thank you very much for the reply.

    In my case, home page is not shown in the pages list. So, apparently, is a detection problem of the home page.

    I’ll try to work around.

    Kind Regards,

    César

    • Ok i see, excuse the stupid questions, did you check the categories to show on your home page in the section “Default Post Page” of the plugin settings? That means default homepage or frontpage, and it doesn’t generate any shortcode but just work (usually!). In fact since it’s not a physical page you couldn’t paste any shortcode on that page.

  • Cesar

    Thank you very much with the help.

    Yes, I check the boxes. In my case, home page do not show any posts, is a static page, with his own layout.

    It applies this filtering over blog pages type. In other types, such full width page, it works properly.

  • Cesar

    It is a matter of fixing the home page detection, then it should work out.

    May be adding an additional condition to the detection.

    I’ll install a development environment. It must be a very simple improvement.

  • Hey Admin, i would like to create 53 pages (52 States and D.C.) or a page for each state and Wash, D.C. . Then I would like to create sub-pages for each city. Would I still be able to post to the sub-page?

  • Fantastic plugin! It was exactly what I needed!

    I have noticed what appears to be a bug. Don’t know if it’s universal or unique to the theme I’m using, but when I set it up to exclude categories from the front page, the name of the first non-excluded category displays as part of the blog title/description in the titlebar at the top of Firefox, e.g. on the front page:

    Audio & Video | Rational Review News Digest | the freedom movement’s daily newspaper

    That’s what it says in the titlebar right now. If I go to the plugin and uncheck Audio & Video, the next category (“Commentary”) displays in the same way.

    Any ideas as to how that might be corrected at the user end, and whether it’s a plug-in bug or a conflict or matter of poor coding at my end?

    • Hi Thomas,

      you are the 2nd person that says that, so it must be a plugin bug. I don’t have the solution right now, because it doesn’t change or replace the title tag, so it must be something about dependencies between functions in WordPress. I need to investigate to find out.
      I hope it’s not a too big problem for the moment!! Sorry about that..

  • Benny

    Hey! Great plugin – but a quick question, when I set it to show only three posts in the specified category – it still shows all of em. Bug, or am I doing something wrong?

    Thanks a lot in advance!
    Benny

    • Hi,
      no you are not doing anything wrong and it’s not a bug. You can choose categories but not single posts. For each category that you check it will display all the posts in those categories. You need to hide the single posts in your admin, or assign them to different categories that you don’t check..

  • Is the plugin broke with the latest version of wordpress? I updated to WordPress 3.1-RC5-17466 and all my posts are now showing up even the category that I excluded from the home page (main post page).

    Thanks in advance.
    JC

  • Looks like the upgrade to WP 3.1 broke the plugin. It worked flawlessly in the past, but now my default post page includes everything, no matter which categories are set to hidden.

    • Guys for now it works up to version 3.0.5, as soon as i switch to 3.1 and find out how to make it work i’ll release a new version.
      If it’s not critical to stick to 3.0.5 for a while, please do so, thanks!

    • Ok i fixed it to make it work with WordPress 3.1! Enjoy!

  • Paul

    Stupid question: WHERE do I post the shortcode? It states “in the page where you want it,” but how? Do I edit the page in html? How do I impact the main page that we cannot edit?

    • Hello Paul,

      it’s very simple. From WordPress admin you edit the page where you want to list the posts of certain categories. In the text area (where you usually type the page content) you need to paste the shortcode that you generate in the plugin settings page.
      For you front page you don’t need to do anything more than checking the categories that you want to filter on the frontpage (you do this in the plugin settings page as well).

  • Thanks. I’m afraid I’m not as bright as I’d like to think I am. Take a look at the page… what I’m trying to do is prevent any post under the category name of “Buyer Needs” from displaying on the main page. I only want those displayed on a page of that same name.

    Selecting the appropriate settings under the plugin settings page, the “Buyer Needs” page displays those two posts correctly. The main/home page displays all posts, including that category I want restricted, even though I have cleared the checkbox next to that category.

    Pasting the code wp_filter_posts cat=”21″ title_style=”h1″ in the main section of the “Buyer Needs” page doesn’t display too well (big bold header) and actually displays all posts on the Buyer Needs page.

    In other words, NOT pasting the short code actually brings about behavior closer to the desired result.

    I must be missing something painfully obvious. Would you mind terribly popping over to take a look?

  • Hey Paul,

    the fact the the style is big etc. depends on the title_style. You set it to “h1″ which means the biggest title available. Try with an “h2″ or “h3″.

    Which version of the plugin do you have? Probably an old one that stopped working with the release of WordPress 3.1

  • I suspect you hit the nail on the head. v2.1.3. I installed via wp-admin > Plugins > Add New and then searched. I’ll download the new version and install.

    Like I said earlier, I’m not the brightest bulb…

  • No problem at all Paul, in fact that was the free version for older WordPress.. Just let me know if i can help you!

  • Purchased and installed the new version last night. Set my Default Post Page to all categories EXCEPT “Buyer Needs.” Set Other Pages to ONLY “Buyer Needs.” Pasted the short code on the Buyer Needs page.

    Looking at my site, two issues arise:

    1) On the Buyer Needs page, those two posts are displaying correctly. However, all other blog posts appear below. This is behavior that I don’t want.
    2) On a lesser note, the Buyer Needs category remains on the main/home page, though the posts are hidden unless a user selects them. I would like to eliminate the category from this page, if possible.

    For further testing, I then removed the short code from the Buyer Needs page but left the settings in WP-Admin > Filter Posts in Pages as they were above.

    1) Buyer Needs now displays correctly
    1) Main/home page displays as above.

    Seems like the short code, for whatever reason, causes the Buyer Needs page to dispaly all other posts below the category I want. Eliminating it helps.

    Now, how do I hide even the Buyer Needs category on the main page?

  • One other note: I have Show As set to “Full Content” but both pages only display excerpts. I played around with uploading a loop-category.php child theme file but that didn’t resolve the problem. Double-checked WP-ADMIN > Reading and that’s set correctly.

    I disabled the plug-in and full text worked again. Re-enabling the plug-in returned to excerpt view. How can I change it to full text?

  • Which theme are you using? Many times there are theme’s that cause unexpected behavior. I try to make it work with any theme, but if they don’t follow exactly the WordPress rules there are issues..

  • The latest, twenty ten.

  • Found and fixed Paul, thanks for the feedback and helping me with details! Check out version 2.2.0

  • David

    Looks like this is an easy way to show different blog categories on different pages, but all it outputs to the page is a link the the post, no exerpt, nothing else. Is this all it is supposed to do?

    • No (or maybe in older versions). With the current version you can choose between showing the full posts or just the excerpts of the categories that you select. This affects pages where you paste the shortcode. For the frontpage (or default posts page) that depends on your theme which might display full posts or only excerpts.

  • DJ

    Hi,

    Is there a way that this plugin lists the posts in the same style as WordPress does on the home page?
    (with image, date, author and the excerpt?

    Now I only see links which is ok but not what I was looking for.

    DJ

    • Hello,
      that depends on your theme. It’s possible but it can’t be determined by the plugin itself. If you have any knoledge of PHP or how to edit plugins i can tell you how to do, or i can do it for you if you create ad admin account for me. But when you change theme you have to do it again to adapt the style to the new theme.

  • DJ

    Thank you Cristian,

    I’m using the Weaver 2.0 theme.
    With a good example I usually manage to get things done ;-)
    It would be great if you could provide an example.

    I do realize that plugin upgrades can result in code being overwritten.

    Cheers
    DJ

  • Tjeerd

    I’m testing this plugin but it seems like I can’t use any other shortcode in my posts. So I have a page called “test”. And this page is showing all the post in category “x”. But if I use the shortcodes from the nextgen gallery plugin in a post from cat. “x”. It shows only the shortcode and not the gallery.
    Is it me who’s doing something wrong or is it not possible to use any other shortcodes in a post. Cause it works when I use them on the page itself.

    Thanks,
    Tjeerd

  • Tjeerd

    And thats what I call ‘support’! From all the themes and plugins I bought none of the developers reacted as quick as you did.

    Thanks!

  • Jay

    Is there a way to get it to also show the postmeta, and exclude any comments?

  • Jonathan

    Hi, I’m interested in purchasing this plugin. I have styling on my category posts — a Facebook Like button and a custom font for the title. You mentioned to DJ above that it is possible to include styling. Do you have PHP instructions for this?
    I built a custom child theme on a blank framework.
    Thanks!

    • Hi, if you have some PHP knowledge it’s easy. You have to manually add the same style (css classes etc.) that your them uses, to the title of the posts that the plugin displays. I have no way to determine which style your theme has, unfortunately.

Trackbacks & Pings

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

WP Answers