Note that there are some explanatory texts on larger screens.

plurals
  1. POvariable issue for return value
    primarykey
    data
    text
    <p>trying to return $out</p> <pre><code>$out = ''; $out .= '&lt;form id="agp_upload_image_form" method="post" action="" enctype="multipart/form-data"&gt;'; $out .= wp_nonce_field('agp_upload_image_form', 'agp_upload_image_form_submitted'); $out .= $posttile = get_option('posttitle'); $out .= $postdiscription = get_option('postdiscription'); $out .= $postauthor = get_option('postauthor'); $out .= $postcategory= get_option('postcategory'); $out .= $uploadimage= get_option('uploadimage'); $out .= $posttitleenabledisables = get_option('posttitleenabledisables'); $out .= $postdiscriptionenabledisable = get_option('postdiscriptionenabledisable'); $out .= $postauthorenabledisable = get_option('postauthorenabledisable'); $out .= $postcategoryenabledisable = get_option('postcategoryenabledisable'); $out .= $uploadimageenabledisable = get_option('uploadimageenabledisable'); $out .= $posttaxonomies = get_option('posttaxonomies'); $out .= $enablecaptcha = get_option('captchaprivatekey'); if ($posttitleenabledisables == 'disable') { } else { $out .= '&lt;label id="labels" for="agp_image_caption"&gt;"'.if ( isset($posttile[0])) { echo get_option('posttitle'); } else { echo 'Post Title'; } .'":&lt;/label&gt;&lt;br/&gt;'; $out .='&lt;input type="text" id="agp_image_caption" name="agp_image_caption" value="$agp_image_caption ;"/&gt;&lt;br/&gt;'; } </code></pre> <p>but stuck at this point giving error </p> <pre><code> $out .= '&lt;label id="labels" for="agp_image_caption"&gt;"'.if ( isset($posttile[0])) { echo get_option('posttitle'); } else { echo 'Post Title'; } .'":&lt;/label&gt;&lt;br/&gt;'; </code></pre> <p>i want this return but getting error because i think variable not allow if else </p> <p>can some one tell how to fix this</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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