• My custom field output display is as follow, and it work great

    <?php if ( function_exists(‘get_custom_field_value’) ){
    get_custom_field_value(‘names’, true);
    } ?>

    But I need that in the display put + in the blank spaces, I mean if the out put is: make your own code , I need the output: make+your+own+code

    How can I do that using as base the above code ????

    Thanks in Advance, and sorry for my bad english.

Viewing 2 replies - 1 through 2 (of 2 total)
  • This might be what you want:

    <?php if ( function_exists('get_custom_field_value') ){
       urlencode(get_custom_field_value('names', true));
    } ?>

    You can always use the str_replace PHP function to change all ‘ ‘ (spaces) with +. Something like

    <?php if ( function_exists('get_custom_field_value') ){
      str_replace(' ', '+', get_custom_field_value('names', true));
    } ?>

    may possibly work.

    Evan

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to put a simbol in the blank spaces of a Custom Field display’ is closed to new replies.