• 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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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 Ga Satrya

    (@satrya)

    Hello,
    I’m sorry for late reply, the shorcode functions has some issue, I’ll try to fix it soon.

    Thank you.

    Twig

    (@palpatine1976)

    +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.