PHP if函数,请高手指点,错在哪里
<?phpifget_post_meta($post->ID,"产品图2",true);?>arrPic.push({smallPic:"<?phpbloginfo('t...
<?php if get_post_meta($post->ID,"产品图2",true); ?>arrPic.push({ smallPic: "<?php bloginfo('template_url'); ?>/<?php echo get_post_meta($post->ID,"产品图2",true);?>", originPic: "<?php bloginfo('template_url'); ?>/<?php echo get_post_meta($post->ID,"产品图2",true);?>", zoomPic: "" }); <?php end if ?>意是,如果有自定义栏目的,产品图2有图片就显示。上传后报错:Parse error: syntax error, unexpected T_STRING, expecting '(' in /data/home/qxu1152570118/htdocs/wp-content/themes/yitai/single-product.php on line 35
展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询