im tryng this
add_filter(‘acf/fields/taxonomy/wp_list_categories’, ‘my_taxonomy_args’, 10, 2);
function my_taxonomy_args ( $args, $field ) {
// do stuff to $args
$args = array(
‘exclude’ => 19,
);
return $args;
}
without any result.
Ok I found a solution to upload an image for non logged user from a front end form.
This method just upload the file in the media library and return the attachment id => $attachment_id (in functions.php)
So, to set the image like featured image for example, use the set_post_thumbnail method:
http://codex.wordpress.org/Function_Reference/set_post_thumbnail
Hope to help you.
Matteo
@ben[email protected] are u uploading image from fontend for non logged user?
I tried your solution but it doesn’t work for me
Thanks
Hi,
I have the same problem, and cant find a solution for change upload_files capability for non logged user.