Forums

[Plugin: Page Restrict] strange problem in firefox (2 posts)

  1. fogofogo
    Member
    Posted 2 years ago #

    Hello

    I'm having a strange issue with this plugin. It seems to repeat in the side bar where my latests posts are displayed. This only happens in Firefox and not in IE?!

    You can see it from here...

    http://jfogarty.com/hpc/wordpress/careers

    this is my code in the side bar if it helps...

    <div id="news-header"><h1>News</h1></div>
    			<?php /* If this is a 404 page */ if (is_404()) { ?>
    			<?php /* If this is a category archive */ } elseif (is_category()) { ?>
    			<p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p>
    
    			<?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
    			<p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
    			for the day <?php the_time('l, F jS, Y'); ?>.</p>
    
    			<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    			<p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
    			for <?php the_time('F, Y'); ?>.</p>
    
    			<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
    			<p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
    			for the year <?php the_time('Y'); ?>.</p>
    
    			<?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
    			<p>You have searched the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
    			for <strong>'<?php the_search_query(); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>
    
    			<?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
    			<p>You are currently browsing the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives.</p>
    
    			<?php } ?>
    
                <?php $my_query = new WP_Query('cat=3&showposts=3'); ?>
    			<?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
    
                        <div id="news-body">
                        <span class="greenheader"><?php the_title(); ?></span><br />
                         <p> <?php global $more; $more = FALSE; ?>
    			<?php the_content(); ?></p>
                        </div><br />
                        <?php endwhile; ?>
                    </div>
    
            </div>

    anybody know why this is happening?

    Thanks

    http://wordpress.org/extend/plugins/pagerestrict/

  2. fogofogo
    Member
    Posted 2 years ago #

    If I remove this line

    <?php the_content(); ?>

    It seems to work fine. Anyone who why this is happening? Please?!

Topic Closed

This topic has been closed to new replies.

About this Topic