OK. Found the solution. Somehow, to $user-ID is null.
Replaced :
$profilefield = get_the_author_meta( ‘fbm_facebook_profile’, $user->ID);
by:
$author_id = get_post_field( ‘post_author’, get_queried_object_id() );
$profilefield = get_the_author_meta( ‘fbm_facebook_profile’, $author_id);
Yep. Same here. This is pretty annoying.
Thinking about you answer, would it solve the problem to simply add 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9 to the list of words ?
That way, it will surely solve 6 people becoming 6_people. But will it also fire for 406 people ??
Hi there.
Good news ! For your workaround, to my understanding, adding s, km/s and people would allow to add a nbsp AFTER these words and not BEFORE, so this is not an option…