Title: What is Wrong with this PHP Code?
Last modified: August 19, 2016

---

# What is Wrong with this PHP Code?

 *  [evilbeet](https://wordpress.org/support/users/evilbeet/)
 * (@evilbeet)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/what-is-wrong-with-this-php-code-1/)
 * I have this in my archive.php file, and it’s breaking the site. I figure it must
   be a syntax error but I can’t figure it out.
 *     ```
       <?php if(($search_engine==1) && ($random > 1) { RSSImport(7, "http://zeldalily.com/index.php/feed/");} ?>
       ```
   
 * RSSImport is the function called to use the WP_RSSImport plugin. It’s working
   fine in my sidebar.php, but it looks like this, without the if code surrounding
   it:
 *     ```
       <?php RSSImport(7, "http://zeldalily.com/index.php/feed/",
                           '</h2>',
                           true,
                           ' ',
                           true,
                           200,
                           '...',
                           '',
                           '...',
                           '<small>',
                           0,
                           '</small>',
                           '',
                          '<small>',
                           0,
                           '</small>',
                           '<ul>',
                           '</ul>',
                           '<h2><li>',
                           '</li>'); ?>
       ```
   
 * Thoughts?

Viewing 1 replies (of 1 total)

 *  Thread Starter [evilbeet](https://wordpress.org/support/users/evilbeet/)
 * (@evilbeet)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/what-is-wrong-with-this-php-code-1/#post-1303972)
 * Bump? 🙁

Viewing 1 replies (of 1 total)

The topic ‘What is Wrong with this PHP Code?’ is closed to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * 1 reply
 * 1 participant
 * Last reply from: [evilbeet](https://wordpress.org/support/users/evilbeet/)
 * Last activity: [16 years, 6 months ago](https://wordpress.org/support/topic/what-is-wrong-with-this-php-code-1/#post-1303972)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
