开发者

Set size on post_thumbnail and lightbox

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜