• 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=”archive_single”>

    <div class=”left”><< <?php previous_post_link(‘%link’) ?></div>
    <div class=”right”><?php next_post_link(‘%link’) ?> >></div>
    <div class=”clear”></div>

    </div>

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <div class=”single”>

    <div class=”single_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>’); ?>

    </div>

    </div>

    <?php endwhile; else: ?>

    <p>Sorry, no posts matched your criteria.</p>

    <?php endif; ?>

    </div>

    <?php get_sidebar(); ?>

    And here is a link to the page so you can see the sidebar problem:

    https://mr-o.com/news/?cat=11

    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

Viewing 2 replies - 16 through 17 (of 17 total)
  • Thread Starter matmochdre

    (@matmochdre)

    Yes I thought that was what happend. I’ll be in touch via e-mail. Thanks again. Mat

    Could somebody give me some advice on my Front page please.

    I think it’s a code error:

    I am having problem with front page of my blog and was wondering how to fix it. I bought word press for Dummies – and I must be a big Dummy as I can’t seem to find the page relating to my problem. If you look at my site then you will hopefully see what I mean. There is a large GAP at the top of the page and I can’t seem to find a solution to fix this – would anybody know where I should look to start to fix this?

    https://www.seanborggoesla.com/

    I am in LA and if there were any classes I could attend for Word Press I would love to hear of them too.

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘Unable to solve code problem. Looking for clear guidance.’ is closed to new replies.