Support » Plugin: Enhanced Recent Posts » Dirty Fix for Enhanced Recent Posts on WP 3.5

  • Resolved strawbyte


    I think a few people have noticed that the ERP plugin breaks the widget area within the admin panel.

    This is because of a dodgy script [from line 200] in includes/widget-class.php within the plugin.

    I’m no expert on PHP and jScript integration but found some help on Otto’s blog on how to do the job properly. See:

    However, a quick and dirty fix is to chop out the script from the php file from line 200.

    All it does is control the display of two text boxes dependent on the value of the drop down. I use this widget all over the place on on site I manage and I can live with having to remember which ‘category numbers’ to put in which box when using the plug-in.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Fantastic! This worked for me. I just commented out lines 202 through 219 and now I’m back in business!

    Thanks so much for posting.

    Would someone mind giving me more info about what to get rid of to make this work?

    Anyone feel like fixing this for 3.5.x ?


    Here’s a quick fix:

    • Go to the “Plugins” area
    • find the “Enhanced Recent Posts” plugin and click on “Edit”
    • within the widget-class.php file change %i% to __i__ (two underscores on both sides of “i”)

    That should do the trick.



    I’ve only just discovered this glitch and was delighted to find such a simple fix. Thank you Aramaz!


    sorry for the delay, I was not closely monitoring the plugin’s support forum.

    Anyway, The plugin has been updated today. I have removed several deprecated function calls and fixed the script problem you have mentioned. Let me know if anything wrong is left or if you need some other feature.



    thanks a ton @vincent. Works great.

    You’re welcome. You can rate the plugin / write a review / make a donation if you want to show your appreciation. Regards,

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Dirty Fix for Enhanced Recent Posts on WP 3.5’ is closed to new replies.