• Resolved spikedog

    (@spikedog)


    Hey all,

    So here is my blog: https://www.neoteros.com/

    If you click on the continue reading or “more” tag on the first post you will see that when it opens the new page with the whole post it makes the sidebars dissappear. Is there any way I can stop it from doing this and should it even be doing this to start with?

    Thanks for any help!

    – Ad

Viewing 6 replies - 1 through 6 (of 6 total)
  • Check to see if your single.php file is calling the sidebar.

    <?php get_sidebar(); ?>

    Thread Starter spikedog

    (@spikedog)

    Hi there Chrisber,

    Thanks for replying to my problem. However having had a look at my single.php file it does appear to be calling the sidebar and while looking I found that in fact it is not pulling the footer as well as the sidebar.

    Here is what is contained in my single.php:

    <?php get_header();?>
    <div id="main">
    	<div id="content">
    	    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    	        <div class="post" id="post-<?php the_ID(); ?>">
                <p class="date">
                <span class="month">
                  <?php the_time('M') ?>
                </span>
                <span class="day">
                  <?php the_time('d') ?>
                </span>
                <span class="year">
                  <?php the_time('Y') ?>
                </span>
              </p>
                <h2 class="title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
                <div class="meta">
    				      <p>Published by <?php the_author_posts_link() ?> at <?php the_time();?> under <?php the_category(',') ?> <?php edit_post_link(); ?></p>
    			      </div>
    			      <div class="entry">
                  <?php the_content(__('Continue Reading »')); ?>
                  <?php wp_link_pages(); ?>
          			</div>
                <p class="comments">
                  <?php comments_popup_link(__('No responses yet'), __('One response so far'), __('% responses so far')); ?>
                </p>
    	          <?php comments_template(); // Get wp-comments.php template ?>
    	        </div>
          <?php endwhile; else: ?>
              <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
          <?php endif; ?>
          <p align="center"><?php posts_nav_link(' - ','« Prev','Next »') ?></p>
    	</div>
      <?php get_sidebar();?>
      <?php get_footer();?>

    It is only on your post #36 and it is because of the map code: there must be something wrong in it that cuts the rest of the page.

    Thread Starter spikedog

    (@spikedog)

    Ah OK I think I have found the problem.

    It seems that the google maps link I had in the post after the more tag was causing the problem.

    However this then leads me to ask if anyone has any idea as to why this would be causing a problem? And am I am able to post googlemaps in wordpress without them causing errors.

    Did you check your code in this specific post? For starters… the iframe code is not closed.

    Thread Starter spikedog

    (@spikedog)

    Thank you Moshu,

    I think that was the problem. I removed the maps and rebuilt them using a plugin and everything seems fine.

    Thank you very much for your help everyone!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘More tag causes sidebars to dissappear?’ is closed to new replies.