Thread Starter
wfeu
(@wfeu)
<?php if ( is_search() || is_paged() || is_archive() ) : // Display Excerpts for Search, Archives and additional pages of Index view ?>
when I have this in content.php Im only getting excerpts on search results. Archives i do not get exceprts. I tried adding if_page ( 37) to show excerpts for my blog page, but Im missing something.
Did you put that content.php in the template-parts folder in Child Theme? Because in this version all content-* files were relocated.
Thread Starter
wfeu
(@wfeu)
yes I duplicated it from parent theme folder and put a copy I edited in tiny-framework-child/ folder. thanks
I just realized that in v2.1.1 for some reason content-single.php is not being used, will investigate, perhaps that’s connected.
Thread Starter
wfeu
(@wfeu)
awesome thanks. The only place on my install I am seeing excerpts is on search results if that helps any.
I had to roll back that split of content.php, but I think it didn’t affect your issue. Will have to look again in to it.
It works in child, but you have to use:
is_search() || is_home() || is_archive()
And check functions.php, because if article is shorter than required you will not see continue reading link, then in functions.php find the function where you can adjust required length of the excerpt.
BTW there is updated v2.1.1 on my site.
Thread Starter
wfeu
(@wfeu)
Thanks, Im using 2.1.1 π really like it. Wasnt able to get that to work editing the content.php I copied into to the child theme folder.
My Home is a static page using your front page template
My blog is a static page – posts page, reached from the top nav menu using default template
Even though you use v2.1.1, it is a development version, so I’m updating until it will be published on WP.org.
So go to my site and get latest version, then create /template-parts folder in the child themes, copy there content.php from the latest version of parent theme and it should work, at least for me it works.