PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

images stop displaying

  1. harerace
    Member

    I added this to my custom-functions.php

    <?php
    add_filter("gform_save_field_value", "save_field_value", 10, 4);
    function save_field_value($value, $lead, $field, $form){
        if( preg_match("/^[0-9]{3}-[0-9]{3}-[0-9]{4}$/i", $value) ) {
    		$more = explode("-", $value);
    		$more = "($more[0])$more[1]-$more[2]";
    		return $value . ", $more, " . str_replace("-", "", $value);
    	}
    }
    ?>

    I used this code to save phone numbers in different formats in the tag field.

    When a user uploads images to the post, the images no longer post.

    Posted 11 years ago on Thursday May 30, 2013 | Permalink
  2. harerace
    Member

    please help

    Posted 11 years ago on Thursday May 30, 2013 | Permalink