0
<div id="imgcontent"> 
<?php my_attachment_gallery(0, 'large', 'alt="' . $post->post_title . '"'); ?> 
</div> <?php endwhile; // end of the loop. ?>    

我想从图库中排除特色图片,它显示为图库的第一张图片。有没有办法做到这一点?

4

1 回答 1

1

所有这些都可能有帮助..

img{
    width:0px;
    height:0px;
    display:none;
    visibility:hidden;
}

更有可能你应该只使用显示无。您还应该使用 javascript 将 php 解析为 html 而不是直接 php,这可能会留下巨大的安全漏洞。

请注意,如果您不想显示 url,请加密 url。

于 2013-08-23T00:08:30.533 回答