Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
好的,所以我正在尝试修改一个显示图像的 wordpress 小部件,以便当您单击图像时,它应该指向图像的 href 属性中所述的 url。我一直试图让它工作一段时间......没有成功。请帮忙!
这是我所拥有的:
<a href="THE CODE I'M MISSING"> <?php echo wp_get_attachment_image( $attachment->ID, array( 370, 278 ) ); ?> </a>
谢谢各位!