一、在php页面中,展示数据的时候要加echo
<img src="<?php echo get_template_directory_uri(); ?>/static/picture/<?php echo $gender; ?>.png" alt="Female" width="150" height="150">
一、在php页面中,展示数据的时候要加echo
<img src="<?php echo get_template_directory_uri(); ?>/static/picture/<?php echo $gender; ?>.png" alt="Female" width="150" height="150">