Support » Fixing WordPress » how to troubleshoot missing section

  • When the site launched a few weeks ago, the section showed. But it’s missing now and I can’t figure out why. I use firebug for html/css issues but not sure how to figure out if my php is bad. trafficsafety.org

    Between the resources cards and the footer with Join Now should be a section that has tweets and newsletter link. Even if the tweet plugin was funky the newsletter should show so I’m stumped.

    Simplified code snippet pasted below. The page numbers are correct (6323 and 6320)

    <section>  
        <article>
    	<?php $query = new WP_Query( array( 
        'post_type' => 'site_support',
     	'p' => '6323'
     	 ) );  
    		while( $query->have_posts() ) {  
    		$query->the_post(); ?>
    		<h1><?php if ( has_post_thumbnail() ) : ?><?php the_post_thumbnail(); ?><?php endif; ?><?php the_title(); ?></h1>  
    	<?php the_content(); ?>
    	<?php if ( function_exists( "display_tweets" ) ) { display_tweets(); } ?> 
    		<?php } wp_reset_query(); ?> 
        </article>
        <article>
     <?php $query = new WP_Query( array( 
        'post_type' => 'site_support',
     	'p' => '6320'
     	 ) );  
    		while( $query->have_posts() ) {  
    		$query->the_post(); ?>
    		<?php if ( has_post_thumbnail() ) : ?><?php the_post_thumbnail(); ?><?php endif; ?>
    		<h1><?php the_title(); ?></h1>  
    	<?php the_content(); ?>
    		<?php } wp_reset_query(); ?> 
    		</article>
    </section>

    after this is get_footer, so page is finishing loading.

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘how to troubleshoot missing section’ is closed to new replies.