I believe the most direct way of customizing WordPress feeds is to hook into them directly with the following filter.
Edit: as we talked about, let’s just edit the content to tear out any
function edit_your_feed_content($content) {
$content = preg_replace("/(<figure.*?[^>]*>)(.*?)(<\/figure>)/i", "", $content);
return $content;
}
add_filter('the_content', 'edit_your_feed_content');
Related Posts:
- custom rss templete
- Access category within rss2_head hook?
- Randomizing wp_tag_cloud() in child theme
- Add multiple custom fields to the general settings page
- When should you, and when should you not, use wp_list_pluck()?
- Display random categories on the front page (Finding and Editing Theme Functions)
- Advantages and disadvantages of using automatic-feed-links
- Is it possible to remove the “standard” post format?
- Woocommerce add to simple product attribute programmatically [closed]
- Issue with get_theme_mod returning a blank value instead of the saved value
- How to remove row-actions from pages table?
- opening links in new tab using – add_filter( ‘the_content’, ‘make_clickable’);
- Modify search function in WordPress (TwentyTwelve)
- How to customize search result page title?
- Auto delete WordPress images/thumbnails (all sizes) and featured after X days/hours, or similar?
- How to fix a theme with page.php Default Template that accidentally deleted?
- Removing Unnecessary Text from Admin Menu without CSS
- Set default options for inserting media
- Default or Preset Content for Custom Post Types
- Add a Post Thumbnail to an RSS Feed with custom size
- Display WordPress Search
- How do I change parameters without changing the core
- Problem with extract() with custom shortcode
- How to add a rel attribute to images that contains their categories?
- get_the_excerpt() not returning anything when post has no excerpt
- add sidebar area to header of child theme
- Automatically add author’s name to post_tag
- How can I remove certain HTML tags from the RSS feed?
- Preferred Use of home_url()?
- Custom function for user register in wp?
- RSS Feed has no styles in chrome – function to add one?
- Theme-Config tab in admin Pannel?
- Creating loop within functions.php
- How to Add a Random Custom Gravatar in the WordPress Comments?
- Adding a class to tag list in a function
- Delete pages and Create default pages for all new network sites
- Actions according to image type and size
- Remove specific page/post from feed
- How to add more than one RSS Feed Link for wordpress
- Post thumbnail relative link and HTML modify
- Refactor create_function
- adding custom classes for tables
- Completely disable RSS feeds on WP 5.5.2 and show a 404 page instead of die();
- Pass Shortcode Attribute to footer Script
- How to mass-delete inline styles in WordPress custom post type automatically?
- How would go about if I just want a temporary function?
- How do I edit wp_head and/or functions.php to remove rss-feed which isnt used and dont validate?
- Remove the deleted users avatar from list
- How to call custom function from functions.php in site-wide template files?
- Customizer field value into functions.php variable
- PHP files included in functions.php don’t seem to work
- Best practices for multiple Custom Feeds functions
- How to remove tag cloud from taxonomy admin edit page?
- How Can I Expand the WordPress Customize window without any Plugin?
- Create single.php for specific tag by tag id or name
- Set quantity of woocommerce product on page visit [closed]
- wp_dropdown_categories and custom attribute
- str_replace function in theme
- Display Password Protected external RSS in wordpress template
- list tags with count in author profile page
- Product Tags in Add New product as checkbox list [closed]
- Get the link for RSS item to display in feed
- Automatically wrap multiple images in div
- Ajax not working properly
- Retrieve tags data in post body
- Echo tags used to describe the theme
- is_customize_preview() like function to check if Customizer “Live Preview” in JavaScript
- Right way to update widget on dynamic new input field
- How to customly read JWPlayer’s “Playlist” items by using its “playlistid”?
- Frontend tag edit/submit form
- Include default functions and methods
- Hard-coding custom menu elements for menu manager
- Twentyten Child Theme: header images display messed up in admin panel
- How can I remove the main description text box in a Woocommerce product editor page? I only use the “Product short description” text box [closed]
- Why is my page feed returning empty content?
- How can I modify all existing tags while keeping the urls themselves?
- Best practices regarding the creation of custom widgets?
- How to remove style attribute in WordPress RSS output?
- IF Statement on Button to make it complete and “uncomplete” based on user action / click
- Gravity Forms Button Text
- Find resources dynamically loading and change or add to the url
- Is possible add icon in title posts only in specific tag?
- When sale price is 0.00 show only regular price
- Unable to login using username
- Word Press – Dynamic Content [closed]
- Insert image in WordPress with HTML5 tag and caption function
- how can I just add to parent theme function(s) instead of redeclaring whole the function
- Move Custom Fields on General Settings Page to New Location
- Skeleton Child Theme Add Icon Bar to Header Flex Grid
- Display tags that only appear in one category
- Run wp_kses_decode_entities on atom feed?
- Add a unique class to HTML tag/element
- different style sheet for just one page template
- How to edit the Tags within the image file URLs?
- Condition OR for current user ID
- How to retrieve the current post’s generated featured image size?
- Custom Behavior when Adding New Custom Post Type in Dashboard
- Where do I store custom functions that call custom page template files?
- Why There Is No “get content by ID” Function
- Function filter breaking tag archive menus