Home › Forums › Support › Replace Excerpt with Subtitle This topic has 5 replies, 3 voices, and was last updated 2 years, 9 months ago by David. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts July 22, 2021 at 12:17 am #1865799 Serban Hi, I have added a subtitle as instructed here. (It works, not problems). Question: How do I replace my excerpt in Blog Layouts with the Subtitle I just created? Thanks for your help. July 22, 2021 at 1:36 am #1865904 ElvinStaff Customer Support Hi Serban, I’m not sure I’m seeing the subtitle element on your site. Perhaps I’m looking on the wrong page. Can you link us to a sample page w/ the subtitle showing up? If the actual subtitle is showing on the page and you simply want to remove the excerpt, you can add this PHP snippet. add_filter( 'generate_show_excerpt', '__return_false' ); July 22, 2021 at 2:26 am #1865968 Serban Hello Elvin, See the Subtitle activated here: https://prnt.sc/1eb24ez Your suggested PHP Snippet will activate my blog page to show Full content for the first (featured) post! I just want to replace the excerpt with the Subtitles as shown in the (private section) image. Any other suggestions? Thanks for the support. July 22, 2021 at 4:11 am #1866127 DavidStaff Customer Support Hi there, try this snippet instead: add_filter( 'get_the_excerpt', function() { $subtitle = get_the_subtitle( get_the_ID(), '', '', false ); if ( $subtitle ) { return $subtitle; } return wp_trim_excerpt(); }, 10, 2); July 23, 2021 at 6:01 am #1867698 Serban Yes. That worked. Thank you! July 23, 2021 at 9:58 am #1868205 DavidStaff Customer Support Glad to be of help Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In