website - Is it possible to write an if statement for a PHP meta description? -
i wanted know if possible write if statement php meta description.
i know basic description
<meta name="description" content=<?php echo e($this->video['title']); ?>
i asking if possible make if statement check if title blank or that.
i not sure question may looking for:
if(e($this->video['title'])!=""){//checking if title not blank ?> <meta name="description" content="<?php echo e($this->video['title']); ?>"><?php }?>
Comments
Post a Comment