Title: [Bug] using thumb in shortcode
Last modified: August 22, 2016

---

# [Bug] using thumb in shortcode

 *  [alucard001](https://wordpress.org/support/users/alucard001/)
 * (@alucard001)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/bug-using-thumb-in-shortcode/)
 * In this file: recent-posts-widget-extended/includes/functions.php:
 * Inside the main function: rpwe_get_recent_posts(), there is an if statement that
   check if “thumb” exist or not. The if statement is wrong.
 * The original is:
 * `if ( $args['thumb']) :`
 * No matter what I entered: thumb=”true” or thumb=”false”, the thumb still show,
   because in this case, thumb is a string, not boolean.
 * To fix it, I change to:
 * `if ( $args['thumb'] && $args['thumb'] != "false" ) :`
 * It works.
 * Please fix this bug.
 * Thank you.
 * Same problem exists in $args[‘date’].
 * [https://wordpress.org/plugins/recent-posts-widget-extended/](https://wordpress.org/plugins/recent-posts-widget-extended/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [martin.blana](https://wordpress.org/support/users/martinblana/)
 * (@martinblana)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/bug-using-thumb-in-shortcode/#post-5600233)
 * Thank you alucard001, it works indeed.
 * Also, when using shortcode the plugin doesn’t seem to check correctly if there
   are user defined values for `orderby` and `cat` (at least those are two that 
   I noticed), which means that only the most recent posts are being displayed, 
   no matter the category or my `random` shortcode argument.
 * I’d really like to use this plugin, so if this could be fixed, I would be very
   grateful. Thanks!
 *  Plugin Author [satrya](https://wordpress.org/support/users/satrya/)
 * (@satrya)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/bug-using-thumb-in-shortcode/#post-5600248)
 * Hello,
    I’m sorry for late reply, the shorcode functions has some issue, I’ll
   try to fix it soon.
 * Thank you.
 *  [Palpatine1976](https://wordpress.org/support/users/palpatine1976/)
 * (@palpatine1976)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/bug-using-thumb-in-shortcode/#post-5600285)
 * +1
 * The shortcode feature is key when using this great widget inside Visual Composer,
   or even inside PHP in the theme. Please fix this datatype bug – can’t turn off
   the date or thumb right now 🙂
 * Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[Bug] using thumb in shortcode’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/recent-posts-widget-extended_3384ca.
   svg)
 * [Recent Posts Widget Extended](https://wordpress.org/plugins/recent-posts-widget-extended/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/recent-posts-widget-extended/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/recent-posts-widget-extended/)
 * [Active Topics](https://wordpress.org/support/plugin/recent-posts-widget-extended/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/recent-posts-widget-extended/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/recent-posts-widget-extended/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [Palpatine1976](https://wordpress.org/support/users/palpatine1976/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/bug-using-thumb-in-shortcode/#post-5600285)
 * Status: not resolved