Note that there are some explanatory texts on larger screens.

plurals
  1. POPHP value being replaced with 'yes'
    text
    copied!<p>I'm calling some property information, and for some items, replacing the value that comes through (ie. if Yes, replace it with qTranslate code for multi-langauages &amp; the same for 'No').</p> <p>For some reason, the item before the 1st thing that has a replaced value (Terrace Size) isn't showing the number value, but instead shows 'yes'. This isn't anywhere in the file, and the value on the other end is 30 (differs per property).</p> <p>This is that section of the PHP:</p> <pre><code>&lt;?php if(get_post_meta($post-&gt;ID,'terracesize',true) &amp;&amp; $terracesize): ?&gt; &lt;li&gt; &lt;p&gt;&lt;?php echo PROP_TRRCESIZE_CSTM;?&gt;:&lt;/p&gt;&lt;p&gt; &lt;?php _e( $terracesize ); ?&gt; &lt;?php echo TRRCESIZE_UNIT_CSTM;?&gt;&lt;/p&gt; &lt;/li&gt; &lt;?php endif; ?&gt; &lt;?php if(get_post_meta($post-&gt;ID,'property_pool',true) &amp;&amp; $property_pool): $property_pool_meta = get_post_meta($post-&gt;ID,'property_pool',true); if ($property_pool_meta == 'Yes') { $property_pool_meta = '&lt;!--:en--&gt;Yes&lt;!--:--&gt;&lt;!--:es--&gt;Sí&lt;!--:--&gt;&lt;!--:ru--&gt;да&lt;!--:--&gt;'; } elseif ($property_pool_meta == 'No') { $property_pool_meta = '&lt;!--:en--&gt;No&lt;!--:--&gt;&lt;!--:es--&gt;No&lt;!--:--&gt;&lt;!--:ru--&gt;нет&lt;!--:--&gt;'; } ?&gt; &lt;li&gt; &lt;p&gt;&lt;?php echo PROP_POOL_CSTM;?&gt;:&lt;/p&gt;&lt;p&gt; &lt;?php _e( $property_pool_meta ); ?&gt;&lt;/p&gt; &lt;/li&gt; </code></pre> <p>(I've included the next item, for Pool).</p> <p>Here's the full code for this page: <a href="https://gist.github.com/anonymous/8043189" rel="nofollow">https://gist.github.com/anonymous/8043189</a> (line 243)</p> <p>This is <a href="http://vetromar.com/beta/property/cabo-roig-villa/" rel="nofollow">the site</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload