Unable to solve code problem. Looking for clear guidance.
Hallo. I have posted this problem before and 2 days later find myself still struggling with the same thing even after advice. I simply cannot do this alone as I do not have the know how. If some one could please look at this code and the problem in general, then provide a fix I would be a very happy man.
I have been customising a theme and have created a page that will only show posts from a specific category. The problem that I am having is that this page also has a sidebar. All was well until I put a second post on the page which made the sidebar move.
I’ve been trying to find a fix but as yet have had no joy. I’m sure it’s a problem with the code for the page I just don’t know what or where.
The code looks like this:
<?php get_header(); ?>
<div class=”left”><< <?php previous_post_link(‘%link’) ?></div>
<div class=”right”><?php next_post_link(‘%link’) ?> >></div>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h3><?php the_title(); ?></h3>
<?php the_content(‘<p class=”serif”>Read the rest of this entry »</p>’); ?>
<?php the_tags( ‘<p>Tags: ‘, ‘, ‘, ‘</p>’); ?>
<?php endwhile; else: ?>
<p>Sorry, no posts matched your criteria.</p>
<?php endif; ?>
<?php get_sidebar(); ?>
And here is a link to the page so you can see the sidebar problem:
I would really appreciate help with this as I’m out of my depth. I’ve have tried to fix this myself but have failed.
Thank you, Mat
- The topic ‘Unable to solve code problem. Looking for clear guidance.’ is closed to new replies.