我在if/else语句的“else”中创建了if语句。但是,函数下面的代码不会运行。当我删除函数时,函数下面的代码将运行。你能帮帮我吗。
此代码导致以下问题:
<?php $googleplay= get_option(\'director_googleplay\');?>
<?php if($googleplay): ?>
<a href="<?php print $googleplay; ?>">
<img src="<?=IMAGES?>/googleplay.png" class=" img-responsive top-buffer-5" alt="Image"/>
</>
<?php endif;?>
php:
<?php $category_id = get_cat_ID(\'Category Name\'); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php if ( in_category("1") ) { ?>
<div class="section">
</div>
<?php } elseif ( in_category("2") ) { ?>
<div class="section">
</div>
<?php } else { ?>
<div class="section">
<?php $googleplay= get_option(\'director_googleplay\');?>
<?php if($googleplay): ?><a href="<?php print
$googleplay; ?>"><img src="<?=IMAGES?>/googleplay.png" class=" img-responsive top-buffer-5" alt="Image"/></><?php endif;;?>
</div>
<?php } ?>
<?php endwhile;else: ?>
<p>Sorry, no posts matched your criteria.</p>
<?php endif; ?>
<div class="section">
<?php $facebook= get_option(\'director_facebook\');<?php if($facebook): ?><a href="<?php print
$facebook; ?>"><img src="<?=IMAGES?>/Facebook.png" class=" img-responsive pull-left"alt="Image"/></><?php endif; ?>
</div>