<div id="imgcontent">
<?php my_attachment_gallery(0, 'large', 'alt="' . $post->post_title . '"'); ?>
</div> <?php endwhile; // end of the loop. ?>
我想從圖庫中排除精選圖像,它顯示爲圖庫的第一幅圖像。無論如何要做到這一點?WordPress的:從圖庫中隱藏精選圖像的縮略圖
post_title . '" ');="" ?>="" <="" div>="" endwhile;="" end="" of="" the="" loop.="" 我想從圖庫中排除精選圖像,它顯示爲圖庫的第一幅圖像。無論如何要做到這一點?"="">
<div id="imgcontent">
<?php my_attachment_gallery(0, 'large', 'alt="' . $post->post_title . '"'); ?>
</div> <?php endwhile; // end of the loop. ?>
我想從圖庫中排除精選圖像,它顯示爲圖庫的第一幅圖像。無論如何要做到這一點?WordPress的:從圖庫中隱藏精選圖像的縮略圖
所有這些可能幫助..
img{
width:0px;
height:0px;
display:none;
visibility:hidden;
}
更多的則可能是你應該只使用顯示屏無法比擬的。你也應該使用JavaScript來解析PHP到html而不是直接PHP,這可能會留下一個巨大的安全漏洞。
請注意,如果您不想顯示網址,請加密網址。
如果我做img隱藏它會隱藏我的圖片的其餘部分? – designnewb
難道你不能刪除它嗎? –
不,因爲我需要精選圖片作爲我的主要投資組合頁面的縮略圖。 – designnewb