• I have a fresh WordPress Install using the Twenty Sixteen

    I can figure out a way to make the homepage JUST SHOW THE EXCEPT of the post. I have filled in the excerpts, I have checked “show summaries only” under General Settings.

    I have tried looking at some other forums but cant figure it out. My site is: styzzz.com

Viewing 4 replies - 1 through 4 (of 4 total)
  • Using a child theme

    https://codex.www.ads-software.com/Child_Themes

    you can edit the ‘template-parts/content.php’ file and delete the content

    <div class="entry-content">
    		<?php
    			/* translators: %s: Name of current post */
    			the_content( sprintf(
    				__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentysixteen' ),
    				get_the_title()
    			) );
    
    			wp_link_pages( array(
    				'before'      => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'twentysixteen' ) . '</span>',
    				'after'       => '</div>',
    				'link_before' => '<span>',
    				'link_after'  => '</span>',
    				'pagelink'    => '<span class="screen-reader-text">' . __( 'Page', 'twentysixteen' ) . ' </span>%',
    				'separator'   => '<span class="screen-reader-text">, </span>',
    			) );
    		?>
    	</div><!-- .entry-content -->

    Hello, here is my topic:

    https://www.ads-software.com/support/topic/most-recent-post-home-page-and-only-excerpts-wthumb-on-category-archive?replies=4#post-8414489

    I’ve been trying to find a solution that allows me to show my most recent post on homepage full post and a list of excerpts for category and archive pages. I haven’t been having luck ??

    I used your advice and created a category.php file and deleted the content lines. Thank you, I now show one category listed as an excerpt.

    Is there a way to now show a list of all of those categories? Like when someone clicks “football” the results show all posts or a certain number of posts from the football category? As it is now, when you click on a category, it only shows the 1 category post

    example:

    https://dailydose.rankubator.com/category/football

    Website:

    https://dailydose.rankubator.com

    Sorry to post on another thread but you seem to know what you’re doing.

    Thread Starter styzzz

    (@styzzz)

    yeah – thats gonna take some custom coding to change the homepage to FULL TEXT and the category pages to EXCEPT.

    Off the top of my head, it would be in the MainIndex.php (or index.php) and the categories.php files respectively.

    Replace:
    the_excerpt()
    ..with…
    the_content()

    Thanks @styzzz

    I found this article:

    https://daext.com/display-the-excerpt-in-the-twenty-sixteen-homepage-and-archive-pages/

    And added a custom content.php file to my child theme which did allow me to show excerpts of my categories and archives, but yeah, it also does the homepage as well since I want to display my most current blog post. Also the reading settings I have to set to more than just 1 for the archive and category results.

    You’re right, I need a custom solution for my main homepage to just display only one post and do the_content – thanks for your input. Good luck with yours.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WordPress Twenty Sixteen Theme – Excerpts not working on homepage’ is closed to new replies.