![sp_Related](https://www.cyberseo.net/wp-content/sp-resources/forum-plugins/tags/resources/images/sp_Related.png)
![sp_TopicIcon](https://www.cyberseo.net/wp-content/sp-resources/forum-themes/default/images/sp_TopicIcon.png)
![Topic Rating: 0 Topic Rating: 0](https://www.cyberseo.net/wp-content/sp-resources/forum-plugins/post-rating/resources/images/sp_RateStarOff.png)
![Topic Rating: 0 Topic Rating: 0](https://www.cyberseo.net/wp-content/sp-resources/forum-plugins/post-rating/resources/images/sp_RateStarOff.png)
![Topic Rating: 0 Topic Rating: 0](https://www.cyberseo.net/wp-content/sp-resources/forum-plugins/post-rating/resources/images/sp_RateStarOff.png)
![Topic Rating: 0 Topic Rating: 0](https://www.cyberseo.net/wp-content/sp-resources/forum-plugins/post-rating/resources/images/sp_RateStarOff.png)
![Topic Rating: 0 Topic Rating: 0](https://www.cyberseo.net/wp-content/sp-resources/forum-plugins/post-rating/resources/images/sp_RateStarOff.png)
3:15 am
![Avatar](https://www.cyberseo.net/wp-content/forum-avatars/defaults/userdefault.png)
July 1, 2017
![sp_UserOfflineSmall](https://www.cyberseo.net/wp-content/sp-resources/forum-themes/default/images/sp_UserOfflineSmall.png)
Hi, i need a simply solution how to write a customfield by php code, i need format data from custom field by low and upper case
So i think the best way will be a use custom php code line for example in custom field
we have
display_name->displayname
so in custom php code will be
$post['custom_fields']['displayname'] = ucfirst($post['custom_fields']['NEW_CUSTOM_FIELD']);
I don't know if i use a correct code i don't know php much tnx.
12:16 pm
![Avatar](https://www.cyberseo.net/wp-content/forum-avatars/defaults/userdefault.png)
July 1, 2017
![sp_UserOfflineSmall](https://www.cyberseo.net/wp-content/sp-resources/forum-themes/default/images/sp_UserOfflineSmall.png)
Not exactly.
I would like to keep two value normal and with ucfirst
$post['custom_fields']['display_name'] = ucfirst($post['custom_fields']['display_name']);
and by this code (I add new custom field)
$post['custom_fields']['display_name'] = ucfirst($post['custom_fields']['NEW_DISPLAY_NAME']);
but this no working
btw how add a raw code on forum tnx
tnx
12:53 pm
![Avatar](https://www.cyberseo.net/wp-content/forum-avatars/defaults/userdefault.png)
July 1, 2017
![sp_UserOfflineSmall](https://www.cyberseo.net/wp-content/sp-resources/forum-themes/default/images/sp_UserOfflineSmall.png)
When I do by this.
$post[‘custom_fields’][‘display_name’] = ucfirst($post[‘custom_fields’][‘NEW_DISPLAY_NAME’]);
I don't get nothing i main field display_name and also in NEW_DISPLAY_NAME
So maybe will be a reason to remove a
display_name->display_name
from custom field form in settins
but how to add this main directive by php tnx/.
Most Users Ever Online: 541
Currently Online:
12 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
ninja321: 86
s.baryshev.aoasp: 68
Freedom: 61
harboot: 56
Pandermos: 54
MediFormatica: 49
Member Stats:
Guest Posters: 337
Members: 2899
Moderators: 0
Admins: 1
Forum Stats:
Groups: 1
Forums: 5
Topics: 1674
Posts: 8532
Newest Members:
ron.cloudycreek, miondsettowin, mieeimgroup, shopmazza, mag_one_net, 4aff.pmAdministrators: CyberSEO: 4026