From c87df797eb149922acfb97556ff2c23776a07451 Mon Sep 17 00:00:00 2001 From: Ashley Rich Date: Mon, 13 Nov 2017 17:17:09 +0000 Subject: [PATCH] Add usage instructions for returning a single image URL --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 23eb848..29c2018 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,12 @@ echo ipq_get_theme_image( $post_id, array( ); ``` +You can return an image URL directly using the `ipq_get_theme_image_url()` function by passing in the image ID and required size. If the image size doesn't exist it will be pushed to the queue and the closest matching image URL will be returned. + +```php +echo ipq_get_theme_image_url( $post_id, array( 600, 400, false ) ); +``` + ## License [GPLv2+](http://www.gnu.org/licenses/gpl-2.0.html)