View Single Post
Old 07-02-2017, 06:20 AM  
just a punk
So fuckin' bored
 
just a punk's Avatar
 
Industry Role:
Join Date: Jun 2003
Posts: 32,332
Quote:
Originally Posted by magneto664 View Post
I try to overwrite custom_fields with gender

Code:
if ($post['custom_fields']['gender'] == 's') {
    $post['custom_fields']['gender_rewrite'] = 'Shemale';
}
Is my way is ok?
No, it's not. It must be done like this:

Code:
if ($post['custom_fields']['gender'] == 's') {
    $post['custom_fields']['gender'] = 'Shemale';
}
__________________
Obey the Cowgod
just a punk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote