Home › Forums › Pro Support › when using author id in more settings – warning This topic has 7 replies, 3 voices, and was last updated 5 years, 11 months ago by Tom. Viewing 8 posts - 1 through 8 (of 8 total) Author Posts October 4, 2017 at 6:23 pm #2712 DavidParticipant Hi there, I’m setting up a site in local development at the moment, so working in debuggging mode, and getting a warning when selecting an author id: urldecode() expects parameter 1 to be string, array given If i change line 184 of /plugins/wp-show-posts/wp-show-posts.php, to: $args[ 'author' ] = $author; it seems to resolve the issue. Is this ok to make this change, to get around the warning message? thanks for your help October 6, 2017 at 9:48 am #2716 TomKeymaster Hi there, Same bug as here: https://wpshowposts.com/support/topic/wp-show-posts-author-id-attribute-not-applied/ I’ve found a fix, but the update isn’t ready yet. Would you be comfortable editing the file if I tell you what to look for and what to change? October 6, 2017 at 4:39 pm #2719 DavidParticipant Hi Tom, cool that would be great, let me know what I need to do. kind regards, David October 7, 2017 at 11:02 pm #2729 TomKeymaster Cool. First, open the wp-show-posts.php file in wp-content/plugins/wp-show-posts Find: $args[ 'author' ] = array( $author ); And replace it with: $args[ 'author' ] = $author; That should do it 🙂 October 8, 2017 at 3:52 am #2732 DavidParticipant Hi Tom, awesome that looks just like the change I made, so thanks for confirming that I got it right 🙂 thanks for your help, kind regards, David October 8, 2017 at 11:17 pm #2735 TomKeymaster Awesome, no problem! 🙂 October 10, 2017 at 7:24 am #2752 DrewParticipant Bingo, that did the trick. I assume this edit will be rolled up into the next scheduled update so it will be fine to let that update overwrite this edit but thanks in advance for letting me know if that’s not the case. October 11, 2017 at 11:28 pm #2768 TomKeymaster Yep – it’s already been patched in the next version 🙂 Author Posts Viewing 8 posts - 1 through 8 (of 8 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In