• SarahScorpionBranding

    (@sarahscorpionbranding)


    Hey all,

    Ok so I made a site here – wandohomes.com
    I developed a child theme using the 2013 theme as the parent.
    I want the home page to the the excerpt of the latest 5 blog posts. I have seen that the biggest suggestion people have is to change < ?php the_content(); ?> to < ?php the_excerpt(); ?> in the index file. However, in the index file for the 2013 theme it doesnt have that. So I dug around in the archive, category, and content php pages, didnt find the_content(); anywhere…

    I know basics, I know how to find lines of code and change it out to what it needs to be. Can someone help me out here?

Viewing 1 replies (of 1 total)
  • Thread Starter SarahScorpionBranding

    (@sarahscorpionbranding)

    Update:
    In my content.php file i did find this

    <div class="entry-content">
    		<?php
    			/* translators: %s: Name of current post */
    			the_content( sprintf(
    				__( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'twentythirteen' ),
    				the_title( '<span class="screen-reader-text">', '</span>', false )
    			) );
    
    			wp_link_pages( array( 'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentythirteen' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>' ) );
    		?>
    	</div><!-- .entry-content -->

    I tried changing the_content to the_excerpt and it did show only the excerpt. But when I clicked read more, it went to a page with still only an excerpt of the post and not the full post.

Viewing 1 replies (of 1 total)
  • The topic ‘2013 Child Theme home page post excerpt’ is closed to new replies.