StudioPress Community Forums

StudioPress Community Forums (http://www.studiopress.com/support/index.php)
-   General Discussion (http://www.studiopress.com/support/forumdisplay.php?f=7)
-   -   How to avoid duplication on a post? (http://www.studiopress.com/support/showthread.php?t=13644)

theparappa 09-07-2009 04:44 PM

How to avoid duplication on a post?
 
Does anyone know how I can remove this duplication of my Post Title in the post?

Here is an example

http://www.uflplayers.com/news/flori...ntry-into-ufl/


Thanks for your help.

CharlesClarkson 09-07-2009 05:14 PM

Re: How to avoid duplication on a post?
 
Show us the contents of your index.php file.

theparappa 09-08-2009 07:49 AM

Re: How to avoid duplication on a post?
 
Sure thing
thanks for looking at this.

Code:

<?php get_header(); ?>

<div id="content">

        <div id="contentleft">
       
                <div class="postarea">
               
                <?php include(TEMPLATEPATH."/breadcrumb.php");?>
                       
                        <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
                        <h1><?php the_title(); ?></h1>
                       
                        <div class="date">
                       
                                <div class="dateleft">
                                       

<span class="time"><?php the_time('F j, Y'); ?></span> by <?php the_author_posts_link(); ?> <?php edit_post_link('(Edit)', '', ''); ?>
 Filed under <?php the_category(', ') ?></p>
                                </div>
                               
                                <div class="dateright">
                                       

<span class="icomment"><?php comments_number('Leave a Comment', '1 Comment', '% Comments'); ?></span></p>
                                </div>
                               
                        </div>
                       
                        <div style="clear:both;"></div>

                        <?php the_content(__('Read more'));?><div style="clear:both;"></div>
                       
                        <div class="postmeta">
                               

<span class="tags">Tags: <?php the_tags('') ?></span></p>
                        </div>
                                       
                        <!--
                        <?php trackback_rdf(); ?>
                        -->
                       
                        <?php endwhile; else: ?>
                       
                       

<?php _e('Sorry, no posts matched your criteria.'); ?></p><?php endif; ?>
                       
                </div>
       
               
               
        <div class="postwidget">
                        <ul id="postwidgeted">
                                <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('468x60 Post Banner') ) : ?> 
                                        [*][img]<?php bloginfo('template_url'); ?>/images/468x60.gif[/img]
                <?php endif; ?>[/list]        </div>
                       
                <div class="comments">
                        <?php comments_template('',true); ?>
                </div>
               
        </div>
       
<?php include(TEMPLATEPATH."/sidebar.php");?>
               
</div>



<?php get_footer(); ?>


CharlesClarkson 09-08-2009 08:51 AM

Re: How to avoid duplication on a post?
 
It looks like you are adding an <h1> tag with the title in the body of each post. That is the second title.

If that's the case, stop doing that.

theparappa 09-08-2009 12:31 PM

Re: How to avoid duplication on a post?
 
gotcha,

thanks.

i'll stop doing that..


All times are GMT -5. The time now is 01:51 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.