Warning: urlencode() expects parameter 1 to be string, array given in
D:\xamppp\htdocs\sample\wp-includes\formatting.php
on line 3690
When I try to give the category_name
in the query_post
,
<?php
$args=query_posts(
array(
'posts_per_page' => -1,
'category_name' =>array('Breaking News Stories', 'Call-out', 'Featured Story', 'Standard Stories')
));
?>
I’m having the above warning in formatting.php
file.
line 3690 has the below code:
<?php
function wp_basename( $path, $suffix = '' )
{
return urldecode( basename( str_replace( array( '%2F', '%5C' ), "https://wordpress.stackexchange.com/", urlencode( $path ) ), $suffix ) );
}
?>