Enhanced Recent Posts
[resolved] Dirty Fix for Enhanced Recent Posts on WP 3.5 (8 posts)

  1. strawbyte
    Posted 3 years ago #

    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: http://ottopress.com/2010/passing-parameters-from-php-to-javascripts-in-plugins/

    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.


  2. groovysoul
    Posted 3 years ago #

    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.

  3. Blake Imeson
    Posted 3 years ago #

    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 ?


  4. aramaz
    Posted 3 years ago #

    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.

  5. Sheila
    Posted 3 years ago #

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

  6. Vincent Mimoun-Prat
    Plugin Author

    Posted 3 years ago #


    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.



  7. Blake Imeson
    Posted 3 years ago #

    thanks a ton @Vincent. Works great.

  8. Vincent Mimoun-Prat
    Plugin Author

    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Enhanced Recent Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.