WordPress模板的image.php

WordPress模板的image.php

目前大多数WordPress主题都没有包含image.php,如果没有这个文件,我们可以复制一个single.php重命名为image.php来做相册的个性化调整。 首先查找 the_content 参数,在他的php标签上面,添加代码: [xml] <p> <a href="<?php echo wp_get_attachment_url($post->I......继续阅读