• Hi there, this is a custom theme I built myself. I do not write PHP and only have a very basic working knowledge so I know my “older posts” link is not working because of something I did/or didn’t do. Here is the code on my index.php I would really like to get the older posts button working as of now it isn’t showing up in any way shape or form.

    <div id="content1">
    <div id="content">
    <div class="posts_over">
              		<?php $my_query = new WP_Query('showposts=7'); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; ?>
    						<div class="posts">
    									<div class="date"><?php the_time('M d Y'); ?></div>
              				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
                          <div class="post-content1">
              					  <?php
                          if ( has_post_thumbnail() ) {
                          	the_post_thumbnail();
                          }
                          ?>
                          <?php the_content('<div class="continue">Click to read the rest of the post »</div>'); ?>
                          <?php wp_link_pages(); ?>
                  				</div>
             			</div>
    
    <?php endwhile; ?>
    			<div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
    </div>
    <?php get_sidebar(); ?>

    The website is: https://www.grandmashousediy.com. Thank you so much guys I promise no one is any more sorry then me that I’m an idiot when it comes to PHP.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    What page has the issue?

    Thread Starter Tarahlynn

    (@tarahlynn)

    The front page and I would like to get the category pages working with an “older entries” button as well. But the front page is the highest priority.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I looked for the text “older posts” and couldn’t find any matches.

    Thread Starter Tarahlynn

    (@tarahlynn)

    Yeah, I know, even the text isn’t showing up at all. I through in a “hi” right above where it should appear but the minute it gets added to:

    <div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>

    It just disappears

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Can you post a link to a screenshot showing where it’s supposed to be?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Thread Starter Tarahlynn

    (@tarahlynn)

    Here it is

    I went ahead and put a border around it and added text so its easy to find. It is right at the bottom beneath the posts and before the footer.

    Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘I know its something I did’ is closed to new replies.