Author custom fields not working
Version 1.5.2.5
On the author page, trying to use custom fields - they are not being translated, just shows the %%cf_city%% in the
My settings for author archives: %%name%% - %%cf_city%%, %%cf_state%%
I used the following:
var_dump(get_user_meta($user->ID));
This displays, as part of a larger array since we store tons of author custom fields:
["city"]=> array(1) { [0]=> string(10) "South Park" } ["state"]=> array(1) { [0]=> string(8) "Colorado" }
So the values are there in the database
I went poking around the "wpseo_replace_vars" function. There is only one mention of replacing %%cf_<field_value>%% values and it happens only on single posts. I then added a custom field tag to my post title template and that did work just fine.
So appears that just author user meta is not being replaced.
This was fixed in our recent work on the replace vars functionality. If it's still an issue, please reopen with examples.