I know its something I did
-
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('« 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)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘I know its something I did’ is closed to new replies.