Title: What wrong with this code?
Last modified: August 19, 2016

---

# What wrong with this code?

 *  [stevedmma](https://wordpress.org/support/users/stevedmma/)
 * (@stevedmma)
 * [18 years ago](https://wordpress.org/support/topic/what-wrong-with-this-code/)
 * > <?php if (function_exists(‘lg_random_image’), lg_random_image(“title”); ?>
 * I tried contacting the author but no luck, basically the code in the read me 
   is wrong, im trying hard to fix it but im not good at this. above is what i have
   now, the read me shows this.
 * > <?php if (function_exists(lg_random_image) lg_random_image(“title”); ?>
 * Neither work, the code is just written wrong, anyone know the right way?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [haochi](https://wordpress.org/support/users/haochi/)
 * (@haochi)
 * [18 years ago](https://wordpress.org/support/topic/what-wrong-with-this-code/#post-767749)
 * `<?php if(function_exists("lg_random_image")) lg_random_image("title"); ?>`
 *  Thread Starter [stevedmma](https://wordpress.org/support/users/stevedmma/)
 * (@stevedmma)
 * [18 years ago](https://wordpress.org/support/topic/what-wrong-with-this-code/#post-767770)
 * yup that worked, thanks alot 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘What wrong with this code?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [stevedmma](https://wordpress.org/support/users/stevedmma/)
 * Last activity: [18 years ago](https://wordpress.org/support/topic/what-wrong-with-this-code/#post-767770)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
