Barron of Blog Wife, Kids, and the Pursuit of Happiness

18Dec/0723

Post Levels 1.1.1 Fix

Geek wavingI use Fortes' excellent Post Levels Plugin on this site. The latest release of WordPress (version 2.3.x) broke this plugin, so I took it upon myself to fix it (since Fortes is currently unavailable).

You can download the updated version here:
Post Levels 1.1.2

If you are curious, the problem was due to a regular expression that was not expecting the SQL "FROM" clause to use an alias for the "wp_posts" table. My solution, which is a bit hacky, was to insert expressions to create and then properly handle this alias. I wish a better solution exists, but to my knowledge WordPress doesn't expose these SQL statements through hooks.

Please let me know if you have any issues.

Filed under: dev, geek Leave a comment
  • http://litkei.hu/blog Litkei Béla

    Thanks,Thanks,Thanks!!!!!!!

  • http://litkei.hu/blog Litkei Béla

    Thanks,Thanks,Thanks!!!!!!!

  • http://twentyfourcarat.net Katy`

    Hello, I just upgraded my WP to 2.3.2 but your updated plugin doesn’t work! =( Please don’t reply to the email up there because it’s fake so I don’t get spammed. If you have time, I would really appreciate it if you help me look into it because this is my favorite plugin!!

    My real email is ko0tz_ (at) hotmail.com

    I get a page that says:
    Sorry, no posts matched your criteria.

    Thanks in advance!!

  • http://twentyfourcarat.net Katy`

    Hello, I just upgraded my WP to 2.3.2 but your updated plugin doesn’t work! =( Please don’t reply to the email up there because it’s fake so I don’t get spammed. If you have time, I would really appreciate it if you help me look into it because this is my favorite plugin!!

    My real email is ko0tz_ (at) hotmail.com

    I get a page that says:
    Sorry, no posts matched your criteria.

    Thanks in advance!!

  • whatever-

    it breaks my pages and page lists and page widgets

  • whatever-

    it breaks my pages and page lists and page widgets

  • http://mike.shannonandmike.net Mike B.

    Hmm – that’s a very bad thing. What theme are you running? Are the page lists something you coded yourself? Have a link so I can see it?

  • http://mike.shannonandmike.net Mike B.

    Hmm – that’s a very bad thing. What theme are you running? Are the page lists something you coded yourself? Have a link so I can see it?

  • http://roadlessunraveled.com Robin

    Broke everything, now I must start from scratch.

  • http://roadlessunraveled.com Robin

    Broke everything, now I must start from scratch.

  • http://mike.shannonandmike.net Mike B.

    You shouldn’t need to start from scratch – just download the previous version and replace it.

  • http://mike.shannonandmike.net Mike B.

    You shouldn’t need to start from scratch – just download the previous version and replace it.

  • Nathan

    Anyone try this on 2.5?

  • Nathan

    Anyone try this on 2.5?

  • http://www.twotwentysix.com kathy

    Hi!
    I love that you wrote a fix for the postlevels plugin because I am using 2.5 wordpress and I was wonderng if the fix works or if there is a way of getting it to work.

    I have it installed but so far it prevents ALL my posts from showing up, on my front page it just says: “Not Found

    Sorry, but you are looking for something that isn’t here ”

    I would really love for this to work so maybe you can send me an email if you know of a solution.
    thanks.

  • http://www.twotwentysix.com kathy

    Hi!
    I love that you wrote a fix for the postlevels plugin because I am using 2.5 wordpress and I was wonderng if the fix works or if there is a way of getting it to work.

    I have it installed but so far it prevents ALL my posts from showing up, on my front page it just says: “Not Found

    Sorry, but you are looking for something that isn’t here ”

    I would really love for this to work so maybe you can send me an email if you know of a solution.
    thanks.

  • http://mike.shannonandmike.net Mike B.

    Yeah – this plugin does NOT current work in WordPress 2.5. I am running that version, but had to disable the plugin (private posts still private using 2.5′s built-in functionality).

    I’ll try to make some time, but honestly there is a lot on my plate right now so don’t hold your breath. I can send you all a quick e-mail when/if it gets released… until then you might want to bug the original author (Fil). :)

  • http://mike.shannonandmike.net Mike B.

    Yeah – this plugin does NOT current work in WordPress 2.5. I am running that version, but had to disable the plugin (private posts still private using 2.5′s built-in functionality).

    I’ll try to make some time, but honestly there is a lot on my plate right now so don’t hold your breath. I can send you all a quick e-mail when/if it gets released… until then you might want to bug the original author (Fil). :)

  • http://www.twotwentysix.com kathy

    thanks. I understand that real life has priorities ;) I also asked the original author about it but haven’t received a reply as of yet.

  • http://www.twotwentysix.com kathy

    thanks. I understand that real life has priorities ;) I also asked the original author about it but haven’t received a reply as of yet.

  • http://twentyfourcarat.net Katy

    I’m with Kathy! :D

    I used your fix for 2.3 but this plugin is the only reason that’s stopping me from upgrading. :) Sigh* I wish the guy who wrote this plugin will keep on supporting it but nevertheless, I’ll be dropping by your page from time to time just in case you do find a fix.

    Take care!

  • http://twentyfourcarat.net Katy

    I’m with Kathy! :D

    I used your fix for 2.3 but this plugin is the only reason that’s stopping me from upgrading. :) Sigh* I wish the guy who wrote this plugin will keep on supporting it but nevertheless, I’ll be dropping by your page from time to time just in case you do find a fix.

    Take care!

  • http://buy-viagra.wodeyao.cn/next-day-delivery-on-viagra.html isobdiomi