Skip to content

Commit

Permalink
Add usage instructions for returning a single image URL
Browse files Browse the repository at this point in the history
  • Loading branch information
A5hleyRich committed Nov 13, 2017
1 parent 18715da commit c87df79
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit c87df79

Please sign in to comment.