Copied over static-random-posts-widget to make minor change