If I’m not mistaken, this could be as simple as
add_filter('get_the_excerpt', 'latex_markup');
if the Latex markup isn’t removed by another filter before that (it shouldn’t, I believe).
latex_markup
is the function jetpack adds to the list of filters on the_content
. It might get interesting when your latex code is at the edge of the excerpt and parts of it would get cut off, but if you can take care of that, you should be fine.
Related Posts:
- Check if the user has explicitly set an excerpt
- How to override function in functions.php of parent theme?
- Show Video in Excerpt
- When is wp_trim_excerpt() called?
- Stripping shortcode from custom excerpt function
- Remove images from get_the_excerpt
- Custom page template how to check is_page from functions.php?
- display public excerpt for private post
- get_the_excerpt() not returning anything when post has no excerpt
- get excerpt without images
- Custom excerpt legnths for specific pages
- How to filter out shortcode when displaying the_excerpt() in the loop?
- Removing the main link to Jetpack from the menu
- Using “Read More” link with custom excerpt
- How to display post content instead of excerpt
- Using Schema with `the_excerpt`
- Custom Post excerpt not working correctly
- Limit length of first excerpt in the loop
- new_excerpt_more link not working properly
- Excerpts are not displayed by a shortcode on category pages
- How to display retweet count and likes in the meta above the excerpt
- Setting a default text for excerpts of a particular category
- Remove links from the_content when using filters wp_trim_excerpt
- Excerpt for pages not showing
- How do I pull excerpts from pages?
- WordPress Excerpt – How to remove the first link using functions.php
- Remove Jetpack infinite-wrap
- Strip div From Excerpt
- How to change value of variable in theme file with functions.php WordPress?
- first paragraph of the_content as meta description
- Adding Read More to Custom excerpts
- Limit number of characters in different excerpts
- the_excerpt function not showing image
- Appending „read more” to the excerpt conditionally
- Hide disclaimer from summary excerpts
- How to make an If Else on Excerpt Filter
- getExcerpt: Make ellipsis appear only if character limit is reached
- need help with ‘… read more’ excerpt in functions.php
- Excerpt length: get 2 paragraphs
- Check if excerpt is empty at loop-portfolio
- Can’t change excerpt length and more tag
- More link – not text
- How to add an excerpt and read more link to a page?
- Adding a filter to my posts
- Excerpt – First Sentence & Read More
- function to show youtube videos within excerpt – if condition and apply_filters
- Get list of years when posts have been published
- Redeclare a function in a child theme
- Do WordPress’ cron’s clean up expired transients?
- How to add first name & last name to default registration form?
- Masking logout URL
- How can I programmatically create “child” pages on theme activation?
- Add admin bar link to edit author
- How to include one class/instance without using global variables
- Modify search function in WordPress (TwentyTwelve)
- How to add CSS style sheet dynamically in wordpress
- Should everything in functions.php be hooked or filtered?
- jquery won’t load in footer
- Passing arguments to my function with do_action and add_action is not working
- How to find the source of the text for wordpress website? I want to change that text
- Count total number of images in post and echo results as number
- Functions – callback vs fallback
- How to make child theme inherit parent custom theme options [closed]
- when I fetch data from remote mysql database in wordpress built in wordpress function is not working?
- Short_title character problem
- Conditional read more adjustment
- Assigning WP functions which echo to PHP variables
- Calling a Function in Functions.php from an external PHP script
- WordPress menu link doesn’t work properly
- Add custom function to a theme with child theme’s functions.php
- Post meta not updating
- Why doesn’t is_page(id) work in functions.php?
- Does code run faster in functions.php than in different theme templates?
- Function to alphabetically sort custom post types creating duplicates
- get_post_meta() problem again
- Update users custom profile fields
- Variables not showing in short code
- Add back in child theme what the parent theme removed with remove_action
- replace text in Sort Box
- Prevent loading of functions
- What is the better for call files: bloginfo() or echo esc_url()?
- WordPress website keeps loading the maintenance page
- loginout function customization
- Dashboard blocker on network multisite for specific user roles
- How to place a div inside a function that creates a div
- How to load a css file depending on the current role
- How to change images url in function.php?
- Probleme shortcode with list author
- Stylesheet does not load despite functions.php
- How to show only specific category post by user role without plugin and restrict all other cats
- Unable to declare AOS library in functions
- Removing sanitize_title_with_dashes Function with The Real Title
- Graphic before title – Specific Category
- Printing medium sized image
- Edit meta fields from within template
- Adding a meta box fields to child theme options page
- How to programmatically GET (to know) which Sidebar (or) which Menu is being used on Different Pages?
- Making an under maintenance page (without using plugins)
- Image width issue in IE [closed]
- How do i set global variable in a function in wordpress functions.php