Title: a simple problem
Last modified: August 18, 2016

---

# a simple problem

 *  [tonywright](https://wordpress.org/support/users/tonywright/)
 * (@tonywright)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/a-simple-problem-2/)
 * i’m trying to add the ‘better image rotator’ from
 * [http://www.alistapart.com/comments/betterrotator/](http://www.alistapart.com/comments/betterrotator/)
 * on to [http://www.rapnews.co.uk](http://www.rapnews.co.uk)
 * as you can see, the command in my sidemenu is showing as code, and not the image.

Viewing 15 replies - 1 through 15 (of 37 total)

1 [2](https://wordpress.org/support/topic/a-simple-problem-2/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/a-simple-problem-2/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/a-simple-problem-2/page/2/?output_format=md)

 *  Thread Starter [tonywright](https://wordpress.org/support/users/tonywright/)
 * (@tonywright)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/a-simple-problem-2/#post-272445)
 * does anyone have any suggestions? im going mad trying to get this to work.
 * it should be a simple task.
 * the instructions say to add a line at the top of the sidebar file which i do,
   and then another line where i want the banner to display.
 * but the code is displayed at the top of my sidebar and a little further down.
   not the actual banner.
 *  [Les Bessant](https://wordpress.org/support/users/lesbessant/)
 * (@lesbessant)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/a-simple-problem-2/#post-272450)
 * First thing – patience. By replying to your own message, you’ve knocked it off
   the list of psots with no answers that some people monitor, which reduces your
   chance of getting a reply…
 * Second – post the content of your sidebar.php (with the code you’ve added) at
   [http://paste.uni.cc/](http://paste.uni.cc/) (or another pastebin) and post the
   link back here. This will (hopefully) enable someone to see what’s going wrong.
 *  Thread Starter [tonywright](https://wordpress.org/support/users/tonywright/)
 * (@tonywright)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/a-simple-problem-2/#post-272482)
 * the paste can be seen here:
 * [http://paste.uni.cc/7879](http://paste.uni.cc/7879)
 * the site is [http://www.rapnews.co.uk](http://www.rapnews.co.uk) but ive taken
   out the code that isn’t working so things dont look ugly for visitors in the 
   meantime.
 *  [Les Bessant](https://wordpress.org/support/users/lesbessant/)
 * (@lesbessant)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/a-simple-problem-2/#post-272540)
 * I can see what’s happened.
 * Where you have `& lt ;` (without the spaces) you should have `<` on line 1 and
   line 69. I guess you copied exactly what was shown on the webpage? I think that
   got mangled in copying and pasting, and nobody’s fixed it.
 *  Thread Starter [tonywright](https://wordpress.org/support/users/tonywright/)
 * (@tonywright)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/a-simple-problem-2/#post-272544)
 * so simply add an < at the front of line 1 and 69?
 * ok thanks ill try it.
 *  Thread Starter [tonywright](https://wordpress.org/support/users/tonywright/)
 * (@tonywright)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/a-simple-problem-2/#post-272554)
 * im afraid this didn’t help.
 *  Thread Starter [tonywright](https://wordpress.org/support/users/tonywright/)
 * (@tonywright)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/a-simple-problem-2/#post-272600)
 * …….?
 *  [Les Bessant](https://wordpress.org/support/users/lesbessant/)
 * (@lesbessant)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/a-simple-problem-2/#post-272613)
 * Did you replace the incorrect letters?
 * Line 1: `<?php include('rotator.php'); ?>`
 * Line 69: `<?php showImage(); ?>`
 *  Thread Starter [tonywright](https://wordpress.org/support/users/tonywright/)
 * (@tonywright)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/a-simple-problem-2/#post-272614)
 * thanks. im now using that code.
 * but it pushes all of the links on my sidemenu right down to the bottom of the
   page, and displays the error:
 * Fatal error: Call to undefined function: showimage() in /home/hiphopne/public_html/
   wp-content/themes/default/sidebar.php on line 68
 *  [Les Bessant](https://wordpress.org/support/users/lesbessant/)
 * (@lesbessant)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/a-simple-problem-2/#post-272615)
 * Presumably “showimage()” is a function in rotator.php?
 * You might need to put the path to where you’ve saved rotator.php in line 1, so
   that it can be found.
 * The path will be something like this:
 * `<?php include('/home/hiphopne/public_html/rotator.php');>`
 * (that’s if it’s in your root folder – if it’s in wp-content, for instance, you’ll
   need to add that to the path)
 *  Thread Starter [tonywright](https://wordpress.org/support/users/tonywright/)
 * (@tonywright)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/a-simple-problem-2/#post-272616)
 * I expanded the location of the rotator.php it’s in the same folder as the sidebar
   anyway though.
 * now getting the error:
 * Parse error: parse error, unexpected ‘>’ in /home/hiphopne/public_html/wp-content/
   themes/default/sidebar.php on line 1
 * i tried deleted the last > and it said the error was on line 3
 *  [Les Bessant](https://wordpress.org/support/users/lesbessant/)
 * (@lesbessant)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/a-simple-problem-2/#post-272617)
 * Can you put the current contents of sidebar.php into the pastebin again, and 
   post the new link here?
 *  Thread Starter [tonywright](https://wordpress.org/support/users/tonywright/)
 * (@tonywright)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/a-simple-problem-2/#post-272619)
 * Hi. The pastebin of sidebar.php is at [http://paste.uni.cc/7884](http://paste.uni.cc/7884)
 * this doesn’t contain any of the code ive been trying to get to work.
 *  [Les Bessant](https://wordpress.org/support/users/lesbessant/)
 * (@lesbessant)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/a-simple-problem-2/#post-272644)
 * Umm, we do need to see what you’re trying to make work…
 *  Thread Starter [tonywright](https://wordpress.org/support/users/tonywright/)
 * (@tonywright)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/a-simple-problem-2/#post-272650)
 * well you’re aware of the two lines which i’ve been putting in to get the rotator
   to work. you’ve been telling me various varities of these two lines. but none
   of them work.
 * the installation instructions says:
 *  <?php include(‘rotator.php’); ?>
 *  <?php showImage(); ?>
 * the first line is meant to go at the top of the whole php.
    the second is meant
   to go wherever i want the image to appear.

Viewing 15 replies - 1 through 15 (of 37 total)

1 [2](https://wordpress.org/support/topic/a-simple-problem-2/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/a-simple-problem-2/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/a-simple-problem-2/page/2/?output_format=md)

The topic ‘a simple problem’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 37 replies
 * 4 participants
 * Last reply from: [wpguin](https://wordpress.org/support/users/wpguin/)
 * Last activity: [19 years, 7 months ago](https://wordpress.org/support/topic/a-simple-problem-2/page/3/#post-272957)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
