3:15 am
July 1, 2017
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
July 1, 2017
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
July 1, 2017
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:
13 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
ninja321: 84
s.baryshev.aoasp: 68
Freedom: 61
Pandermos: 54
MediFormatica: 49
B8europe: 48
Member Stats:
Guest Posters: 337
Members: 2856
Moderators: 0
Admins: 1
Forum Stats:
Groups: 1
Forums: 5
Topics: 1643
Posts: 8359
Newest Members:
info.conversieonline, samuel2288, comercios.cercademi, wanmarkets, torontomark48, info.ckmedianetworkAdministrators: CyberSEO: 3950