Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
Pages: 1
I have a WP CE4 theme set up to display Blog Home w/Sticky Post.
Currently, the sticky post is excerpted. Is there a way to have it display the entire post, but keep all other posts excerpted?
Offline
You'd have to edit the files to achieve that. Without digging into the code, I'm not entirely sure where that would be. Probably in either the index.php or loop.php files. You could run a search over the files for the terms "sticky" or "the_excerpt" to find the relevant chunk.
Offline
Found it!
In loop.php, I changed:
<?php // the Content or the Excerpt?
if (
(is_home() && of_get_option('post_excerpts')) ||
is_archive() || is_search()
){ // post excerpt: ?>
to
<?php // the Content or the Excerpt?
if (
(is_home() && of_get_option('post_excerpts') && !is_sticky() ) ||
is_archive() || is_search()
){ // post excerpt: ?>
Now, the sticky post(s) are expanded and all other posts are excerpted.
Thanks for the info on which files to look at Matt!
Last edited by Pfredd (2016-05-29 21:26:38)
Offline
Pages: 1