I am helping a buddy having a custom WordPress theme she bought from Theme Forest which has a jQuery slideshow while using cycle wordpress plugin. It really works all right on all of the Pages. I checked out the code and also the only factor I'm able to determine is the fact that around the blog pages it processes the code improperly with the addition of a backslash before all of the " and ' figures, which breaks it within the javascript. I am unsure where to start to repair this. Both page.php and also the single.php file reference the next code:

    <div id="slide">
    <?php 
        if ( get_post_meta($post->ID,'head', true) ) { 
            echo get_post_meta($post->ID,'head', true);
        } elseif ( get_post_meta($post->post_parent,'head', true) ) {
                echo get_post_meta($post->post_parent,'head', true);
        } else { 
            echo get_option('retro_headimage');
        }           
    ?>
    </div>
    <script type="text/javascript">
        $('#slide').cycle('fade');
    </script>

That is outputted like:

<div id="slide">
<img src="/wp-content/uploads/2009/11/over-the-hill.jpg" alt="" />
</div>
<script type="text/javascript">
$('#slide').cycle('fade');
</script>

Around the publish pages that not have the publish_meta of 'head' set, this is actually the outputted html:

<div id="slide">
<img src=\"/wp-content/uploads/2009/11/over-the-hill.jpg\" alt=\"\" />
</div>
<script type="text/javascript">
$('#slide').cycle('fade');
</script>

Which breaks the javascript. And So I observed it was echoing a choice of 'retro_headimage' that is occur the Theme Options page within the dashboard. The issue is, when you get into that Theme Options page and re-go into the correct code for that image upon saving it the backslashes come back. Can anybody help?

I haven't done PHP however it appears like the Theme Options page calls add_option/update_option (http://codex.wordpress.org/Function_Reference/add_option) that will escape the worthiness being set. You have to find out if there's a method to set the worthiness without getting away the quotes.

Thought it's not the ultimate answer, hope it points you within the right direction.

I have clarified my very own question also it was SIMPLE! Rather than going through custom theme admin pages and editing functions and determining how you can set values without getting away quotes, I simply edited the very first file above, and transformed the "echo get_option('retro_headimage')" section to echo a fundamental image tag. Problem solved! :)