Php code displaying in the output.
-
1. First of all, want to thank for giving such wonderful plugin.
For me every thing worked fine except some issues.2. The set of i used in between [insert_php] and [/insert_php]-
<p align="left"> [insert_php] $name = get_post_custom_values('staff_name'); $image = get_post_custom_values('staff_image'); $info = get_post_custom_values('staff_info'); $email = get_post_custom_values('staff_email'); $contact = get_post_custom_values('staff_contact'); foreach ( $image as $key => $value ) { echo $value; foreach ( $name as $key1 => $value ) { if($key == $key1){ echo "<span class='staff_name'>".$value." "."| </span>"; } foreach ( $info as $key2 => $value ) { if($key == $key1 && $key1 == $key2){ echo "<span class='staff_info'>"." ".$value."</span><br />"; } foreach ( $email as $key3 => $value ) { if($key == $key1 && $key1 == $key2 && $key2 == $key3){ echo "<span class='staff_detail'><span style='font-weight:lighter;'>Email:</span>"." ".$value."<br />"; } foreach ( $contact as $key4 => $value ) { if($key == $key1 && $key1 == $key2 && $key2 == $key3 && $key3 == $key4){ echo "<span style='font-weight:lighter;'>Direct:</span>"." ".$value."</span><br /><br /><br /><br /><br /><br />"; } } } } } } [/insert_php] </p> <div class="clear"></div>3. I am getting the correct output, but, at the end of the output i am getting php code also.Please help me out to solve this issue.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Php code displaying in the output.’ is closed to new replies.