开发者

Set size on post_thumbnail and lightbox

开发者 https://www.devze.com 2023-04-12 15:45 出处:网络
I need to set lightbox and size with the post_thumbnail function. I have this code implemented on my site http://pastebin.com/UhA1UxYv

I need to set lightbox and size with the post_thumbnail function.

I have this code implemented on my site http://pastebin.com/UhA1UxYv

How can I set a size like 355px X 236px and this large image add开发者_JAVA百科 the rel to open in lightbox? or thickbox

I know that the function to set size is array(355,236), but I don't know how implemented this in the code.


like this i think

wp_get_attachment_image_src( get_post_thumbnail_id(), array(355,236))


It is very simple, use this instead will save your time and server load.

http://code.google.com/p/timthumb/

0

精彩评论

暂无评论...
验证码 换一张
取 消