






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:
7 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
ninja321: 81
s.baryshev.aoasp: 63
Freedom: 61
MediFormatica: 49
B8europe: 47
saviulisse67: 45
Member Stats:
Guest Posters: 338
Members: 2465
Moderators: 0
Admins: 1
Forum Stats:
Groups: 1
Forums: 4
Topics: 1459
Posts: 7293
Newest Members:
ernestorenovato, tamara.tlustenko, hasandogu, volkane169, vivevirtual.es, danielle.c.thompsonAdministrators: CyberSEO: 3461