Forums

Help! All posts are going to the same old post! (3 posts)

  1. claytonboen
    Member
    Posted 3 years ago #

    This recently started happening and I can't figure out why! To see the error, go to http://cataxrevolution.com

    Here is my home page code:

    <?php get_header(); ?>

    <div id="content" class="home">

    <div id="main">

    <h3 id="myWritings" class="replace">My Writings. My Thoughts.</h3>

    <div class="box1 clearfix">

    <?php query_posts('showposts='.get_option('woo_home_posts')); ?>
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>

    <div class="post clearfix">
    <h3 id="post-<?php the_ID(); ?>">" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></h3 ><span class="txt0"><?php edit_post_link('Edit', '', ''); ?> • <?php the_category(', ') ?> • <?php the_time('F j, y') ?> • <?php comments_popup_link('No Comments ', '1 Comment ', '% Comments »'); ?> </span>

    <?php the_excerpt() ?>

    <h4>" rel="CLICK HERE to read the rest of this message!" title="CLICK TO READ">CLICK HERE to read the rest of this message!</h4>

    </div>

    <?php endwhile; ?>
    <?php else : ?>

    <h3 class='center'>No posts found.</h3>

    <?php endif; ?>

    <p class="fr">View Archives</p>

    </div>

    </div><!-- / #main -->

    <div id="sidebar">

    <!--
    <div id="portfolio">

    <h3 id="myPortfolio" class="replace">My Portfolio. Recent Works.</h3>

    <ul class="img-list clearfix">

  2. <img src="<?php bloginfo('template_url') ?>/images/img-portfolio-1.jpg" alt="" />
  3. <img src="<?php bloginfo('template_url') ?>/images/img-portfolio-2.jpg" alt="" />
  4. <img src="<?php bloginfo('template_url') ?>/images/img-portfolio-3.jpg" alt="" />
  5. <img src="<?php bloginfo('template_url') ?>/images/img-portfolio-4.jpg" alt="" />
  6. <div class="clear"></div>

    </div>
    -->

    <div id="flickr">

    <h3 id="myPhotos" class="replace">My photos. Now you know me.</h3>

    <?php twitpic_pics($username = 'DanWarp', $num = '10', $linked = 'true'); ?>

    <div class="clear"></div>
    <p id="browseFlickr"><span class="replace">Browse Flickr</span></p>

    </div>

    <h3 id="myLifestream" class="replace">My lifestream. Stay updated with me.</h3>

    <div class="box1 clearfix">

    <?php if (function_exists(lifestream)) lifestream(get_option('woo_home_lifestream')); ?>

    </div>

    <div id="myfavblog" class="fr">

    <h3 id="myFavblog" class="replace">My favblog. Feeds from them.</h3>

    <div class="box1">
    <ul class="list2">

    <!-- You can put whatever you want in this box... this is just an example -->
    <?php wp_list_bookmarks('title_li=&categorize=0'); ?>

    </div>

    </div>

    </div><!-- / #sidebar -->

    </div><!-- / #content -->

    <?php get_footer(); ?>

    and here is my single post code:

    <?php get_header(); ?>

    <div id="content">

    <div id="main">

    <div class="box1 clearfix">
    <div class="post clearfix">

    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

    <h2><?php the_title(); ?></h2>
    <p class="txt1"><?php edit_post_link('Edit', '', ''); ?> • <?php the_category(', ') ?> • <?php the_time('F j, y') ?> </p>

    <h4> <?php the_content(); ?></h4>

    <?php endwhile; endif; ?>

    </div>

    </div>

    <?php comments_template(); ?>

    </div><!-- / #main -->

    <?php get_sidebar(); ?>

    </div><!-- / #content -->

    <?php get_footer(); ?>

    What the heck is going on?

  • claytonboen
    Member
    Posted 3 years ago #

    I figured out that what I posted above isn't the problem. Turns out the culprit is the video I am trying to place in the header. I have no idea, but when I do, it causes the problem. Here is the code for my header.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head profile="http://gmpg.org/xfn/11">
    
    <title>
    <?php if ( is_home() ) { ?><?php bloginfo('name'); ?>&nbsp;|&nbsp;<?php bloginfo('description'); ?><?php } ?>
    <?php if ( is_search() ) { ?><?php bloginfo('name'); ?>&nbsp;|&nbsp;Search Results<?php } ?>
    <?php if ( is_author() ) { ?><?php bloginfo('name'); ?>&nbsp;|&nbsp;Author Archives<?php } ?>
    <?php if ( is_single() ) { ?><?php wp_title(''); ?>&nbsp;|&nbsp;<?php bloginfo('name'); ?><?php } ?>
    <?php if ( is_page() ) { ?><?php bloginfo('name'); ?>&nbsp;|&nbsp;<?php wp_title(''); ?><?php } ?>
    <?php if ( is_category() ) { ?><?php bloginfo('name'); ?>&nbsp;|&nbsp;Archive&nbsp;|&nbsp;<?php single_cat_title(); ?><?php } ?>
    <?php if ( is_month() ) { ?><?php bloginfo('name'); ?>&nbsp;|&nbsp;Archive&nbsp;|&nbsp;<?php the_time('F'); ?><?php } ?>
    <?php if (function_exists('is_tag')) { if ( is_tag() ) { ?><?php bloginfo('name'); ?>&nbsp;|&nbsp;Tag Archive&nbsp;|&nbsp;<?php  single_tag_title("", true); } } ?>
    </title>
    
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" />
    <!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_directory'); ?>/ie.css" /><![endif]-->
    <!--[if IE 6]>
    <script src="<?php bloginfo('template_directory'); ?>/includes/js/pngfix.js"></script>
    <script src="<?php bloginfo('template_directory'); ?>/includes/js/menu.js"></script>
    <![endif]-->
    
    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php if ( get_option('woo_feedburner_url') <> "" ) { echo get_option('woo_feedburner_url'); } else { echo get_bloginfo_rss('rss2_url'); } ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
    <?php wp_head(); ?>
    
    <!--LINK-OPACITY-STARTS-->
    <style type="text/css">
    
    a.linkopacity img {
    filter:alpha(opacity=0);
    -moz-opacity: 0.0;
    opacity: 0.0;
    -khtml-opacity: 0.0;}
    
    a.linkopacity:hover img {
    filter:alpha(opacity=100);
    -moz-opacity: 1.0;
    opacity: 1.0;
    -khtml-opacity: 1.0; }
    
    </style>
    <!--LINK-OPACITY-STOPS-http://bloggerstop.net-->
    
    <script type="text/javascript">
    <!--
    var tmr = null, ebd = null;
    function makesound(file) {
    if (!ebd) {
    var snd = document.createElement('embed');
    snd.setAttribute("name", "hoversound");
    snd.setAttribute("id", "hoversound");
    snd.setAttribute("src", file);
    snd.setAttribute("autostart", "true");
    snd.setAttribute("loop", "false");
    snd.setAttribute("volume", "150");
    snd.setAttribute("hidden", "true");
    document.getElementById("sound-holder").parentNode.appendChild(snd);
    if (tmr) {
    clearTimeout(tmr);
    }
    tmr = setTimeout('killsound()', 200);
    ebd = true;
    }
    else {
    clearTimeout(tmr);
    killsound();
    return makesound(file);
    }
    }
    function killsound() {
    document.getElementById("sound-holder").parentNode
    .removeChild(document.embeds['hoversound']);
    ebd = null;
    }
    //-->
    </script>
    
    </head>
    
    <body id="woothemes">
    
    	<div id="wrap">
    
    		<div id="header">
    
                <ul id="nav" class="nav">
    
    				<li<?php if ( is_home() ) : ?> class="current_page_item"<?php endif; ?>><a href="<?php echo get_option('home'); ?>/">Home</a></li>
    				<?php
                    if (get_option('woo_nav'))
                        wp_list_categories('sort_column=menu_order&amp;depth=3&amp;title_li=&amp;exclude=');
                    else
                        wp_list_pages('sort_column=menu_order&amp;depth=3&amp;title_li=0&amp;exclude=17, 19, 32' );
                    ?>
    
    			</ul>
    
    			<form id="topSearch" class="search" method="get" action="<?php bloginfo('url'); ?>">
    
    				<p class="fields">
    					<input type="text" value="search" name="s" id="s" onfocus="if (this.value == 'search') {this.value = '';}" onblur="if (this.value == '') {this.value = 'search';}" />
    					<button class="replace" type="submit" name="submit">Search</button>
    				</p>
    
    			</form>
    
    <?php if ( !get_option('woo_video') ) include ( TEMPLATEPATH . "/includes/video.php" ); ?>
    
    <div id="logo">
                    <a href="http://www.cataxrevolution.com/" title="<?php bloginfo('description'); ?>"><img class="title" src="<?php if ( get_option('woo_logo') <> "" ) { echo get_option('woo_logo').'"'; } else { bloginfo('template_directory'); ?>/images/logo.png<?php } ?>" alt="<?php bloginfo('name'); ?>" /></a>
                    <h1 class="replace"><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>	
    
                </div>
    
    <span id="sound-holder">
    <div id="logo3">
                    <a class="linkopacity" href="http://twitter.com/DanWarp" onMouseOver="makesound('Tock.wav');" onMouseOut="makesound('');" target="_blank" title="Click to Follow Me On Twitter"><img class="title" src="<?php if ( get_option('woo_logo') <> "" ) { echo get_option('woo_logo').'"'; } else { bloginfo('template_directory'); ?>/images/logo3.png<?php } ?>" alt="Click to Follow Me On Twitter" /></a>
                    <h1 class="replace"><a href="<?php echo stripslashes( get_option( 'woo_aboutlink' ) ); ?>"><?php bloginfo('name'); ?></a></h1>	
    
                </div>		
    
    <div id="logo4">
                    <a class="linkopacity" href="http://www.youtube.com/DanWarp" onMouseOver="makesound('Tock.wav');" onMouseOut="makesound('');" target="_blank" title="Click to Subscribe to My YouTube Channel"><img class="title" src="<?php if ( get_option('woo_logo') <> "" ) { echo get_option('woo_logo').'"'; } else { bloginfo('template_directory'); ?>/images/logo4.png<?php } ?>" alt="Click to Follow Me On Twitter" /></a>
                    <h1 class="replace"><a href="<?php echo stripslashes( get_option( 'woo_aboutlink' ) ); ?>"><?php bloginfo('name'); ?></a></h1>	
    
                </div>	
    
    <div id="login">
                    <a class="linkopacity" href="http://cataxrevolution.com/wp-login.php" onMouseOver="makesound('Tock.wav');" onMouseOut="makesound('');" title="Click Here to Login"><img class="title" src="<?php if ( get_option('woo_logo') <> "" ) { echo get_option('woo_logo').'"'; } else { bloginfo('template_directory'); ?>/images/login.png<?php } ?>" alt="Click to Follow Me On Twitter" /></a>
                    <h1 class="replace"><a href="<?php echo stripslashes( get_option( 'woo_aboutlink' ) ); ?>"><?php bloginfo('name'); ?></a></h1>	
    
                </div>
    
    <div id="signup"
                    <a class="linkopacity" href="http://cataxrevolution.com/wp-login.php?action=register" onMouseOver="makesound('Tock.wav');" onMouseOut="makesound('');" title="Click Here to Register"><img class="title" src="<?php if ( get_option('woo_logo') <> "" ) { echo get_option('woo_logo').'"'; } else { bloginfo('template_directory'); ?>/images/signup.png<?php } ?> " alt="Click to Follow Me On Twitter" /></a>
                    <h1 class="replace"><a href="<?php echo stripslashes( get_option( 'woo_aboutlink' ) ); ?>"><?php bloginfo('name'); ?></a></h1>	
    
                </div>
    </span>	
    
    		</div>
  • claytonboen
    Member
    Posted 3 years ago #

    Here is the video.php code, but I doubt it matters:

    <div id="videos">
    
        <h3 id="myVideos" class="replace">My videos. Featured videos.</h3>
    
        <div class="box1" id="video">
    
            <?php query_posts('tag=video&amp;showposts=1'); ?>
    
            <?php while (have_posts()) : the_post(); ?>
    
            <?php woo_get_custom('embed'); ?>
    
            <?php endwhile; ?>
    
        </div><!--box1-->
    
    </div><!--videos-->
  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags