Hi @abdullahkus
1. Try adding this code snippet to your theme’s functions.php file or use the Code Snippet plugin to run this code:
add_filter("um_restrict_post_thumbnail","__return_true");
The above code will display the thumbnail of a restricted post.
2. You can use this filter hook to modify the post query:
um_profile_query_make_posts
Example usage:
add_filter("um_profile_query_make_posts","um_061221_query_make_posts");
function um_061221_query_make_posts( $args ){
$args['post_type'] = ['post','products'];
return $args;
}
For more details about the WP_Query, please see this documentation: https://developer.ww.wp.xz.cn/reference/classes/wp_query/
Regards,
Hello,
if you check through the link I mentioned at the bottom, pictures cannot be taken in the profile -> posts section in the plugin.
https://www.kebivet.com/user/abdullah/?profiletab=posts
I also added a code fragment to the functions file, but it didn’t help.
add_filter(“um_restrict_post_thumbnail”,”__return_true”);
Hi @abdullahkus
Could you please tell us what version of UM you’re using on your site? the current version is 2.1.20
Regards,
benim kullandığım sürümde 2.1.20.
Hi,
This may be because of a plugin/theme conflict. Can you do a conflict test and see if the issue goes away? This doc explains how to do a conflict test if you are not sure: How to do a plugin/theme conflict test?
Regards,
I’ve tried, but I don’t think it’s caused by conflict, the only problem is that the picture wasn’t taken with the “src” tag.
Hi @abdullahkus
I couldn’t reproduce the issue on our end. Here’s a screenshot:
https://drive.google.com/file/d/1R3bk6D0PaZkFluyprMi2ssvzaeCZe-r2/view?usp=sharing
Did you try using a default WP theme such as 2020 or 2021 to see if the issue still occurs, and see if this is a conflict with your theme?
Regards,
Hi @abdullahkus
…Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help. 🙂
Regards,