Archive | Documentation RSS feed for this section

wp_get_attachment_image_src

Retrieve an image to represent an attachment.A mime icon for files, thumbnail or intermediate size for images.

3683

Continue reading

wp_get_attachment_image

Get an HTML img element representing an image attachmentWhile $size will accept an array, it is better to register a size with add_image_size() so that a cropped version is generated. It’s much more efficient than having to find the closest-sized image and then having the browser scale down the image.

3681

Continue reading

wp_get_archives

Display archive links based on type and format.The ‘type’ argument offers a few choices and by default will display monthly archive links. The other options for values are ‘daily’, ‘weekly’, ‘monthly’, ‘yearly’, ‘postbypost’ or ‘alpha’. Both ‘postbypost’ and ‘alpha’ display the same archive link list, the difference between the two is that ‘alpha’ will order by post title and ‘postbypost’ will order by post date.

3677

Continue reading