Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
sixeleven
tagDiv Member

C) Just had the same problem. Here is a quick function to to just that:
/* User should only see media files they uploaded themselves */
function restrict_media_library_to_user_uploads($query) {
if (!is_admin() || defined(‘DOING_AJAX’) && DOING_AJAX) {
$user_id = get_current_user_id();
if (!current_user_can(‘administrator’)) { // Optionally exempt administrators
$query[‘author’] = $user_id;
}
}
return $query;
}
add_filter(‘ajax_query_attachments_args’, ‘restrict_media_library_to_user_uploads’);

Just add this code to your functions.php and that’s it.

sixeleven
tagDiv Member

I can confirm this problem after updating to 11.4.3!

sixeleven
tagDiv Member

Hi Bogdan

We’ve done that first, but there is no effect. The problem occurs only on video-posts. The generated thumbs are in the wrong sizes and sometimes break also the layout on homepage.

Layout broken

I could provide a login to our backend.

Best

sixeleven
tagDiv Member

Hi Bogdan

Understand that for all smartlists except #1. This one is the one I’ve chosen in the hope to generate impressions, as this one has unique URLs and all pages are able to load separately in a browser. If this can’t like the other, is there a way to realize that?

Thanks and best

six

Viewing 4 posts - 1 through 4 (of 4 total)