Choosing Hide Custom Excerpts on a post by post basis #1927
Unanswered
pentastich
asked this question in
Help
Replies: 1 comment 4 replies
-
Try #1505 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to be able to choose whether or not to "hide custom excerpts" on a post by post basis. In other words, I want to be able to have some posts display the custom excerpt, and others hide it. Currently the flag is global, and appears to affect what {{text}} expands into.
I know at least one way to achieve this: I can enable the global "Hide custom excerpts on post pages" flag, add a custom page option "includeCustomExcerpt", and modify the post template to check the custom page option and explicitly include the {{excerpt}}. The following code in an overridden posts.hbs file worked for me:
I'm wondering whether there's a better way to go about this. I'd rather not reinvent the wheel!
Beta Was this translation helpful? Give feedback.
All reactions