• Resolved nokill

    (@nokill)


    My page navigation as you can see on the site here: dosn’t work anymore.

    I edited the index.php a bit to get a featured content with the following code

    <!-- First Loop for Featured section -->
    
    		          <!-- pull 1 post from the featured category -->
    
              <?php $recent = new WP_Query("cat=1130&amp;showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
    
                    <div id="post-<?php the_ID(); ?>" class="main-post-bg">
    
    					<p class="post-comments"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?>
    
    					<?php if ( is_first_post($post->ID) ) $img_src = get_post_meta($post->ID, 'lead_image', true); else $img_src = get_post_meta($post->ID, 'thumbnail', true); if ( $img_src == '' ) $img_src = '/wp-content/themes/theunstandard/images/theunstandard-blank.jpg';?>
    
                    	<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><img src="<?php echo $img_src; ?>" /></a>
    					<div class="title-insert">
    						<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
    					</div>
    				</div>
    
    			<?php endwhile; ?>
    
                <!-- end of loop for featured section -->
    
                <!-- second loop for the 6 boxes -->
    
                <!-- pull designated number (6) posts from any category BUT the featured category -->
    
                		<?php $recent = new WP_Query("cat=-1130"); while($recent->have_posts()) : $recent->the_post();?>
    
                    <div id="post-<?php the_ID(); ?>" class="secondary-post-bg left">
    
    					<p class="post-comments"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?>
    
    					<?php if ( is_first_post($post->ID) ) $img_src = get_post_meta($post->ID, 'lead_image', true); else $img_src = get_post_meta($post->ID, 'thumbnail', true); if ( $img_src == '' ) $img_src = '/wp-content/themes/theunstandard/images/theunstandard-blank.jpg';?>
    
                    	<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><img src="<?php echo $img_src; ?>" /></a>
    					<div class="title-insert">
    						<h3><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
    					</div>
    				</div>
    
    			<?php endwhile; ?>
    
                <!-- end of second loop for the 6 boxes -->

    now after this code the search results and older pages don’t work anymore. the code for this is

    <?php else : ?>
    			<div class="post single">
    				<h2>No matching results</h2>
    				<div class="entry">
    					You seem to have found a mis-linked page or search query with no associated or related results.
    
    				</div>
    			</div>
    			<?php endif; ?>

    The else and endif have been temp removed in the current website because they make a syntax error all up a sudden… can anyone slap me and tell me what I did wrong here? 🙁

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Page navigation/search etc not working’ is closed to new replies.