Forums

Hide/Disable Navigation links from the loop (2 posts)

  1. pavy
    Member
    Posted 3 years ago #

    I have made a loop to show the most recent 3 posts on my wordpress home page. It is a static homepage, mostly, other than the 3 posts and a custom widget area. I wanted to know how I could hide the "Next Page" navigation area that shows up there. It must be from the loop, but I don't understand why it's there, how it got there, and how to prevent it from showing up. I have 4 total posts in the system (when I had 3, there was no "Next Page" link).

    Here is the link to my site (I'm developing a theme):
    http://wordpress.matthewpavkov.com/

    And here is the full code for home.php -

    <?php get_header(); ?>
    
    <div class="simplewhite">
    	<img src="wp-content/themes/palershadeofgray/images/photos/main.jpg" id="mainimage" border="0" />
    
    	<div id="static-sidebar">
    		<h1>new work</h1>
    
    		<?php query_posts('showposts=3'); if (have_posts()) : ?>
    		<?php while (have_posts()) : the_post(); ?>
    			<div class="minipost">
    				<div class="minipost-words"><?php the_content(); ?></div>
    				<img src="wp-content/themes/palershadeofgray/images/photos/new_work01.jpg" border="0" />
    			</div>
    		<?php endwhile; ?>
    		<?php endif; ?>
    	</div>
    
    	<div id="static-header-content">
    		<img src="wp-content/themes/palershadeofgray/images/photos/thumb01.jpg" class="thumb" border="0" /><img src="wp-content/themes/palershadeofgray/images/photos/thumb02.jpg" class="thumb" border="0" /><img src="wp-content/themes/palershadeofgray/images/photos/thumb03.jpg" class="thumb" border="0" /><img src="wp-content/themes/palershadeofgray/images/photos/thumb04.jpg" class="thumb" border="0" /><img src="wp-content/themes/palershadeofgray/images/photos/thumb05.jpg" class="thumb" border="0" /><img src="wp-content/themes/palershadeofgray/images/photos/thumb06.jpg" class="thumb" border="0" /><img src="wp-content/themes/palershadeofgray/images/photos/thumb07.jpg" class="thumb" border="0" /><img src="wp-content/themes/palershadeofgray/images/photos/thumb08.jpg" class="thumb" border="0" /><img src="wp-content/themes/palershadeofgray/images/photos/thumb09.jpg" class="thumb" border="0" /><img src="wp-content/themes/palershadeofgray/images/photos/thumb10.jpg" class="thumb last" border="0" />
    		<div class="words">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.<br />
    Why do we use it?<br /><br />
    It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).<br /><br />
    <a href="#">(MORE)</a></div>
    <br style="clear:both;" />
    	</div>
    </div>
    
    <?php get_footer(); ?>
  2. pavy
    Member
    Posted 3 years ago #

    Guess I'm answering my own question. I was so confused because I thought the Page Navigation was coming from the loop. But, it was coming from a hook:
    <?php hybrid_after_content(); // After content hook ?>

    That hook was in the footer.php file. So I removed that and everything is good.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.