Support

Account

Home Forums General Issues Category Page Reply To: Category Page

  • I tried a couple of things but neither worked. First I just removed the setup_postdata($post); from the code but in doing that the page looked the same.

    Next I tried the following code:

    <header>
    
    <!--logo/nav/social-->
    <div class="container">
    
    <!--logo-->
    	<a class="logo" href="<?php bloginfo('url'); ?>">
    		<img class="logo" src="<?php bloginfo('template_directory'); ?>/images/logo.png" alt="<?php bloginfo('name'); ?>" />
    	</a>
    	
            
     <?php include(TEMPLATEPATH . '/nav.php'); ?>
     
     <div class="social">
         <a class="facebook" href="#" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/facebook.png" alt="<?php bloginfo('name'); ?>" /></a>
    	 <a class="twitter" href="#" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/twitter.png" alt="<?php bloginfo('name'); ?>" /></a>
    	 <a class="youtube" href="#" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/youtube.png" alt="<?php bloginfo('name'); ?>" /></a>
         <a class="linkedin" href="#" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/linkedin.png" alt="<?php bloginfo('name'); ?>" /></a>
     </div><!--end.social-->
     
    <div class="clear"></div>
    
     <!--mobile header-->
     <div class="phone-nav visible-phone visible-tablet">
            <div class="mobile-phone visible-phone visible-tablet">
            
            <?php $posts = get_posts(array(
                	'post_type' => 'siteinfo',
                    'posts_per_page' => -1,
                    'orderby'=> 'ID',
                    'order' => 'ASC'
                  ));
    			  		
    	if ( $posts->have_posts() ) : while ( $posts->have_posts() ) : $posts->the_post();  
                         
    	$phone = get_field('phone_number'); ?>
    			
            <a class="phone-btn"  href="tel:1-<?php echo $phone; ?>"><img class="phone-icon" src="<?php bloginfo('template_directory'); ?>/images/white-phone.png" alt="menu" /><?php echo $phone; ?></a>
            </div>
            <div class="mobile-menu visible-phone visible-tablet"><a id="responsive-menu-button" href="#sidr-main"><img class="menu-icon" src="<?php bloginfo('template_directory'); ?>/images/menu-icon.png" alt="menu" />Main Menu</a></div>
     </div>
    
    </div><!--end.container-->
    <div class="mobile-back"></div>
    
    </header>
    
    <div class="phone-google">
    <div class="container">
    
    				<div class="phone">
    				    <p><img class="phone-img" src="<?php bloginfo('template_directory'); ?>/images/phone.png" alt="<?php bloginfo('name'); ?>" />
    	                
    	                <span><?php echo $phone; ?></span></p>
    	            </div><!--end.phone-->
                
       <?php endwhile; // end of the loop. 
    endif; ?>
                    
                    <div class="g-plusone" data-size="large"></div>
                                        
    <!-- Place this tag after the last +1 button tag. -->
    <script type="text/javascript">
    (function() {
       var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
       po.src = 'https://apis.google.com/js/plusone.js';
       var s = document.getElementsByTagName('script')[0];   s.parentNode.insertBefore(po, s);
    })();
    </script>
                                        
               
                    
    </div><!--end.container-->
    </div><!--end.phone-google-->

    But that made everything below the navigation disappear.

    Can you see anything else I may be doing wrong?

    Thanks!