• Hello I have tried everything, and I really need help!

    I have changed <?php the_excerpt(); ?> to <?php the_content(); ?> but this is what happens when I do. It shows the full story but it puts it over the excerpt and messes up the whole page.

    Screenshot:
    http://img828.imageshack.us/img828/5476/messup.png

    Site Url:
    http://sacredterm.no-ip.org/testing/

    Unedited Index.php:

    <?php get_header(); ?>

    <div id=”content”>

    <?php if (have_posts()) : ?>
    <?php $count = 0; ?>
    <?php while (have_posts()) : the_post(); ?>
    <div <?php post_class(‘box’) ?> id=”post-<?php the_ID(); ?>”>

    <div class=”boxcover”>
    <div class=”entry”>
    <div class=”boximage”>
    <div class=”boxtitle”>
    <h2>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php echo ShortenText(get_the_title()); ?></h2>
    </div>

    <?php if ( has_post_thumbnail() ) {?>
    <?php the_post_thumbnail( ‘home-thumbnail’ );?>
    <?php } else { ?>
    <img src=”<?php bloginfo(‘template_directory’); ?>/images/place.jpg” alt=”” />
    <?php } ?>

    </div>

    <?php the_excerpt(); ?>

    <div class=”clear”></div>

    </div>
    </div>

    <div class=”boxinfo”>

    <div class=”boxauthor”>Posted by <?php the_author(); ?> </div>
    <div class=”boxmore”>” title=”Permanent Link to <?php the_title(); ?>”>Read Full Post </div>
    <div class=”boxcoms”><?php comments_popup_link(‘0’, ‘1’, ‘%’,”,” ); ?> </div>
    </div>

    </div>
    <?php if(++$counter % 2 == 0) : ?>
    <div class=”clear”></div>
    <?php endif; ?>
    <?php endwhile; ?>

    <div class=”clear”></div>
    <div id=”navigation”>
    <?php if(function_exists(‘wp_pagenavi’)) : ?>
    <?php wp_pagenavi() ?>
    <?php else : ?>
    <div class=”alignleft”><?php next_posts_link(__(‘« Older Entries’,’arclite’)) ?></div>
    <div class=”alignright”><?php previous_posts_link(__(‘Newer Entries »’,’arclite’)) ?></div>
    <div class=”clear”></div>
    <?php endif; ?>

    </div>

    <?php else : ?>

    <h1 class=”title”>Not Found</h1>
    <p>Sorry, but you are looking for something that isn’t here.</p>

    <?php endif; ?>

    </div>

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

    Can someone please help me or show me what I have to do or edit to get this working.

Viewing 15 replies - 1 through 15 (of 49 total)
  • Can someone please help us.

    Thread Starter sacred term

    (@sacred-term)

    No one is willing to take a few minutes of there time to help?

    You can add me on msn and talk if you want, sacred_term@live.com

    now what u want?

    Thread Starter sacred term

    (@sacred-term)

    Im trying to make it display full articles on my homepage insted of excerpts

    ok…use the_content() function instead of the_excerpt and remove the following div
    <div class="boxmore">" title="Permanent Link to <?php the_title(); ?>">Read Full Post </div>

    Thread Starter sacred term

    (@sacred-term)

    Ok I removed that and did what you said and it still does what its doing in the screenshot.

    goto css file and increase the width of box css

    Thread Starter sacred term

    (@sacred-term)

    Here is the box css code, what should I change it to.

    .title{
    margin: 0 0 0 0px;
    padding: 0px 0px 0px 0px;

    }

    .boximage{

    position:relative;
    width:325px;
    height:150px;
    }

    .boximage img{
    border:1px solid #fff;
    }

    .boxtitle{
    position:absolute;
    bottom:0px;
    left:1px;
    padding:10px 10px;
    background:url(images/trans.png) ;
    width:305px;
    }
    .boxtitle h2{
    font-size: 16px ;
    }
    .boximage h2 a, .boximage h2 a:link, .boximage h2 a:visited {
    color:#fff;
    background-color: transparent;
    }
    .boximage h2 a:hover {
    color:#228fc4;
    background-color: transparent;
    }

    .box {
    width:350px;
    margin: 10px 10px 5px 0px;
    height:100%;
    color:#666;
    font: 13px Tahoma, century gothic,Arial,verdana, sans-serif;
    float:left;
    background:#060606;

    }
    .boxcover{

    padding:10px;

    }
    .boxinfo{
    width:350px;
    height:50px;
    background:url(images/boxinf.png) no-repeat;
    overflow:hidden;
    position:relative;

    }
    .boxmore{
    float:left;
    width:200px;
    margin:5px 0px 5px 10px;
    display:inline;
    }
    .boxauthor{
    float:left;
    width:200px;
    margin:10px 0px 5px 10px;
    color:#fff;
    display:inline;
    }

    .boxcoms{
    top:12px;
    right:10px;
    font-size:40px;
    position:absolute;

    }
    .boxcoms a:link, .boxcoms a:hover,.boxcoms a:visited{
    color:#fff;
    }
    .videopost{
    margin-bottom:10px;
    }
    .videopost embed{
    width:260px;
    height:200px;
    }

    Thread Starter sacred term

    (@sacred-term)

    Also it still shows the excerpt default image, so there has to be something else I have to remove in order to remove it from showing it.

    .box {
    background:#060606 none repeat scroll 0 0;
    color:#666666;
    float:left;
    font-family:Tahoma,century gothic,Arial,verdana,sans-serif;
    font-size:13px;
    font-size-adjust:none;
    font-stretch:normal;
    font-style:normal;
    font-variant:normal;
    font-weight:normal;
    height:100%;
    line-height:normal;
    margin:10px 10px 5px 0;
    width:auto;
    }
    
    .boxinfo {
    background:transparent url(images/boxinf.png) no-repeat scroll 0 0;
    height:50px;
    overflow:hidden;
    position:relative;
    width: auto;
    }

    update your css with my code. 2 css are existing in your style.css file.

    Just change width: 350px to auto or 100%

    Cheers

    Chinmoy

    If solve so mark it as resolved.

    Thread Starter sacred term

    (@sacred-term)

    Ok but it is still showing the except for some reason even though I have changed it to content, why is this?

    i am getting the full post. why you see the excerpt content?

    Thread Starter sacred term

    (@sacred-term)

    This is what it is doing now,

    Screenshot:
    http://img37.imageshack.us/img37/6875/messup2.png

    are you want black background? if No, remove background from those 2 css.

    Thread Starter sacred term

    (@sacred-term)

    Ok everything is working good, but the title of the post is now at the bottom of the page.

    Screenshot:
    http://img844.imageshack.us/img844/6345/53779114.png

Viewing 15 replies - 1 through 15 (of 49 total)

The topic ‘Full Story On Front Page Problem.’ is closed to new replies.