harmjanr
Forum Replies Created
-
Solved it with this meta_query, with help of this stackexchange thread: https://wordpress.stackexchange.com/questions/16709/meta-query-with-meta-values-as-serialize-arrays
'meta_query' => array( array( 'key' => 'mygroups', 'value' => sprintf(':"%s";', $groupid), 'compare' => 'LIKE' ) )Thanks a lot for your help! Both issues are resolved.
@missveronicatv thanks for your answer, points me in the right direction! The quality of the image is 190×190 max (also on the actual user page on the website). Is this the best quality possible? It looks quite blurry on both the site and the app..
The user tags issue is fixed, apparently in the newer version of WordPress there is a prepare_callback property in show_in_rest where you can evaluate php code to fetch the terms.
register_meta( 'user', 'group', array( 'type' => 'string', 'single' => true, 'show_in_rest' => [ 'prepare_callback' => function( $value ) { $retval = []; foreach($value as $id) { $retval[] = get_term($id); } return $retval; } ], ) );The profile picture issue looks like a specific UM question, so any help is still appreciated.
@tactildisseny I stumbled upon the same issue today. I was showing the um page in a webview that had Javascript disabled. Only setting opacity on 1 didn’t work, since the layout of the page looked bad.
Enabling Javascript fixed it for me.