Support » How-To and Troubleshooting » Learner Theme Full Posts on Homepage

Learner Theme Full Posts on Homepage

  • Hello All,
    I am extremely new to WordPress. I am a novice coder meaning I took an HTML and CSS class I can code some actionscript and I know some coding or at least can find some lines of code and can tell what it does. My problem is this. I am using the Learner theme, since that one had the look and feel of the website I wanted to build. I have built the whole thing and I’m fixing the bugs.

    The problem I’m having is one that comes up often which is, having full blog posts on my home page instead of an excerpt. I’ve done some checking and many say 1 of 3 options.

    1. change ‘the_excerpt’ to ‘the_content’

    2. put the entire blog post in the excerpt part of the post and publish it to override the settings.

    3. the theme will not allow you to have full posts, select another that does.

    Obviously, having designed the whole site the third isn’t an option right now. And I put in the whole post in the excerpt and only the excerpt showed still. I only see ‘the_excerpt’ in the post.php file. Whenever I change the coding either nothing happens or the whole site disappears except the slider.

    I feel very strongly it’s this line of code in the post.php that changes the whole look and I need to know what line of code do I need to put in to show a full post?

    The line of code in post.php

         echo $theme->shorten(get_the_excerpt(), '70');

    Here’s the link to the site http://www.cherishedkps.com/cktestsite/

    Please help.

    Many thanks

Viewing 1 replies (of 1 total)
  • I guess I should put the whole code of the post.php file. Here it is in case I missed anything.

    <?php global $theme; ?>
        <div <?php post_class('post post-box clearfix'); ?> id="post-<?php the_ID(); ?>">
            <h2 class="title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'themater' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
            <div class="postmeta-primary">
                <span class="meta_date"><?php echo get_the_date(); ?></span>
                <?php if(comments_open( get_the_ID() ))  {
                        ?> &nbsp; <span class="meta_comments"><?php comments_popup_link( __( 'No comments', 'themater' ), __( '1 Comment', 'themater' ), __( '% Comments', 'themater' ) ); ?></span><?php
            <div class="entry clearfix">
                    if(has_post_thumbnail())  {
                        ?><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(
                            array($theme->get_option('featured_image_width'), $theme->get_option('featured_image_height')),
                            array("class" => $theme->get_option('featured_image_position') . " featured_image")
                        ); ?></a><?php
                      echo $theme->shorten(get_the_excerpt(), '70');
            <?php if($theme->display('read_more')) { ?>
            <div class="readmore">
                <a href="<?php the_permalink(); ?>#more-<?php the_ID(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'themater' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php $theme->option('read_more'); ?></a>
            <?php } ?>
        </div><!-- Post ID <?php the_ID(); ?> -->
Viewing 1 replies (of 1 total)
  • The topic ‘Learner Theme Full Posts on Homepage’ is closed to new replies.