You can utilize the wp_trim_excerpt
filter. In your callback function that filters the the excerpt text, you can test for the presence of a certain template; then, if that template is being used, you can go ahead and alter the excerpt in any way that you see fit. In order to determine which template is being used, see this clever solution: Get name of the current template file. Let me know if this helps or if you need more.
Related Posts:
- Post formats template
- the_excerpt producing empty output
- Get link to a specific template file [closed]
- Page editor missing Templates drop down
- How to edit contents of dynamic_sidebar()?
- What is the link to my default “archive” page?
- Customizing get_the_excerpt() to specific length and “Read More” output.
- I put my blog on a subpage, how do I get page title?
- How to hide/redirect the author page
- Need to give custom page template for each language in WPML
- Templates & CSS – Proper Programming Practice?
- Create Page that uses specific template
- index.php template is used instead of blog page
- Same template for all the terms of a taxonomy
- Hide Front-End Admin Bar Including 32 px Spacing
- What is a good way to present templated content in WordPress?
- Adding variable to get_template_part
- How to apply a custom template for posts by default?
- How to move style from template file to section?
- Subpage template
- How to display only an excerpt of the content with custom post types?
- How to create a wordpress template without using any page
- Advanced Custom Fields – display when specific template used?
- How do I find the directory of a page template?
- Missing ‘Page Attributes’
- how to use custom page template in a page?
- Why do I get the same excerpt for all items in my RSS feed?
- Conditionally display different images before the content in a page template
- Is there a way to set different post templates for parent posts and child posts in the same post type?
- Change wp-signup.php Page Template
- How to remove the Template drop down, but keep Parent and Order
- Templates have disappeared from drop down lists
- One of my pages uses the archive.php template only. Why?
- Getting pages filtered by template assigned
- Default Template Selected After Changes in Elementor [closed]
- Use same page template for parent and child pages in a theme
- displaying category and subject posts
- How to duplicate a page template but make minor changes to the header?
- Adding Query to Custom Page Template
- get_file_data to read data for Custom Template File?
- Page attributes missing
- wp_enqueue_style and different styles for blog template
- Use one template only for custom post type archives?
- What is the best practice to style archive page 2,3,etc differently than archive.php?
- Page template option missing
- How do I get the page template name chosen?
- How can I add text to a specific ‘Edit Page’?
- How to use index.php as a template for archives?
- get_header(), get_footer() from plugin template
- What template is used for viewing Media Library Files?
- Page template for a site from network
- Archive template limiting to 4 entries?
- Undefined get_header function
- Single-page.php template file name not shown
- How can I get all archive-URLs to use the same template?
- WordPress archive index page
- How to display custom post type?
- Hard Coding Components on a Client Specific Websites
- Will placing custom templates in sub directory break any native WordPress functionality
- Organize template parts and page templates in folders in regards of template hierarchy
- Blog page won’t show Blog template
- templates with page teasers Or Featured Items
- How can I allow users to edit text that will be displayed on a custom post type archive page?
- Random home page at each refresh between array of page IDs
- Search button click sends to single-custom_post_type instead staying at the same page
- Display a custom 404 page without a redirect
- How can I make custom page templates work on child theme?
- Change Page Template Based on URL Rewrite in WordPress
- Archive only for /year/month, not terms
- Nested Page Template not showing in page attributes
- Creating custom post-listing templates in twentyseventeen child theme
- When to use content-pagename.php?
- Submit form to another template (ugly url)
- Is it possible to return a specific tag archive/template as one of the search results?
- Page Templates Used in Custom Post Type
- custom template – override plugin template in child theme – issue with scripts
- Is this the best way to complete disable category archive pages?
- Is there a way to share a template/markup with the JSON API so that it doesn’t need to be declared both in PHP and in JS?
- How to install a wordpress website template on an existing website?
- Custom Archive with Content for Custom Post Type
- Tag Posts showing in wrong places
- Problem with permalink structure for WordPress custom post_type archive template
- Page.php vs Single.php
- My homepage’s width has reduced and I can´t fix it [closed]
- html blog template to wordpress template
- Stream Video Player does not work with do_shortcode()?
- How To Create WooCommerce Custom Template For Specific Product?
- Custom templates vs page-slug
- Trying to display short code content in template file with do_shortcode()
- How to customize WooCommerce templates to avoid override upon update [closed]
- Creating new content types (Pages, posts, testimonials, tigers, oh my!)
- Can I assign a Folder for Post Formats, without it affecting WordPress’ fallback/hierarchical system?
- Templates dropdown not appearing using _s theme (underscores)
- Query the database after get_header() has been included
- How to insert “get_template_part()” based on Category ID?
- How can I include ALL post types in the_post_navigation() links, not just current post type?
- Attachment URL for an image is loading direct image file
- Custom WooCommerce template for product
- Custom Template doesn’t output result when set as homepage
- Displaying Child Page’s Information