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

18Dec/0711

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
  • 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!
  • 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.
  • 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). :)
  • 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.
  • Nathan
    Anyone try this on 2.5?
  • You shouldn't need to start from scratch - just download the previous version and replace it.
  • Broke everything, now I must start from scratch.
  • 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?
  • whatever-
    it breaks my pages and page lists and page widgets
  • 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!!
  • Thanks,Thanks,Thanks!!!!!!!
blog comments powered by Disqus