• Roland,

    I have a custom template which reads one field containing a shortcode for a map plugin. Up to version 1.7.5.9 the code

    $map_string = '['.$this->field->get_value().']';
    	  	echo do_shortcode($map_string);?>

    Worked fine ie it reads and implements the relevant shortcode- it no longer works in 1.7.5.10

    Please advise

    Malcolm

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Roland Barker

    (@xnau)

    There was a change in that version to close up some security vulnerabilities, and had the unfortunate side effect of making it impossible to put HTML into normal field values.

    I don’t know what the content of that field is, so I can’t say specifically what is going wrong there. Can you post the field value?

    Thread Starter mdhills

    (@mdhills)

    The field contains

    wpgmza id=”1″ with the number changing in each record

    I suppose I could build the shortcode in the template and just have the number stored in the field, but would have preferred to have avoided that if possible

    Malcolm

    Plugin Author Roland Barker

    (@xnau)

    Well, if your field value was simply “1” you could do something like this:

    $map_string = '[wpgmza id=”'.$this->field->get_value().'"]';
    	  	echo do_shortcode($map_string);?>
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Custom Template “do_shortcode” no longer working properly’ is closed to new replies.