• 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, "https://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, "https://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)
Viewing 1 replies (of 1 total)
  • The topic ‘What is Wrong with this PHP Code?’ is closed to new replies.