Extract url from next_image_link

The function below is derived from adjacent_image_link() function. You can get both previous and next image source by this function. It can be used inside or outside loop. Uses // get next image src $src = wpse145194_get_adjacent_image_link(); // get previous image src $src = wpse145194_get_adjacent_image_link(true); Function function wpse145194_get_adjacent_image_link( $prev = false, $size=”thumbnail”, $post_id = false) … Read more

Display different Images depending on the current day

You can put all the related images in a specific directory. Let’s say the directory is grid_images and all the images have jpg extension. Then when you want to show the image, you can get the current day of the month and pull the image accordingly. $image = PATH_TO_GRID_IMAGES_DIRECTORY . date( ‘j’ ) . ‘.jpg’; … Read more

Remove the height limit on wordpress 3.4.2

There is no height limit in WordPress, however your theme may have set the Content Width to 950, so the limit is there on the width in the theme. This limit prevents you from inserting an image wider than the available space for it on the page.