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
- 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
- Woocommerce add to simple product attribute programmatically [closed]
- opening links in new tab using – add_filter( ‘the_content’, ‘make_clickable’);
- Set default options for inserting media
- Default or Preset Content for Custom Post Types
- Display WordPress Search
- How to add a rel attribute to images that contains their categories?
- Automatically add author’s name to post_tag
- Preferred Use of home_url()?
- RSS Feed has no styles in chrome – function to add one?
- How to Add a Random Custom Gravatar in the WordPress Comments?
- Delete pages and Create default pages for all new network sites
- Actions according to image type and size
- How to add more than one RSS Feed Link for wordpress
- Post thumbnail relative link and HTML modify
- Refactor create_function
- 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?
- Best practices for multiple Custom Feeds functions
- Create single.php for specific tag by tag id or name
- str_replace function in theme
- Display Password Protected external RSS in wordpress template
- Get the link for RSS item to display in feed
- 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”?
- Hard-coding custom menu elements for menu manager
- Twentyten Child Theme: header images display messed up in admin panel
- Best practices regarding the creation of custom widgets?
- How to remove style attribute in WordPress RSS output?
- Is possible add icon in title posts only in specific tag?
- 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
- Add a unique class to HTML tag/element
- How to edit the Tags within the image file URLs?
- Custom HTML markup
- Use a shortcode to display custom meta box contents
- Tags break custom Excerpt function
- Create custom function for hero image
- How to append classname to body tag if guest user
- The_content and Preg_replace in loaded Iframe [closed]
- two search forms on the same page
- Function to replace comment’s accented characters before posting
- How do I place a function in a standalone page?
- New checkbox in custom widget isn’t saving data
- Linking Javascript in functions.php file
- Function to echo (or display?) wordpress tags in the head section
- Aspx/Rss feed – failed to open stream: Redirection limit reached
- Function to check if custom page is used by page?
- RSS feed showing deleted post
- What is wp_get_post_tags for media tags?
- How to replace ACTION url from original wordpress login form?
- Header menu aligned right on all pages except for single-post page [closed]
- How to use WP conditional tag in a functions.php with OCEANWP Theme?
- Hide author info in single posts by certain users
- External api call and make global variable for any page visitor enters , page-home, page, single etc
- CSS style and app.js not loading
- Allow user only create specific tags
- Parent category as WOOCommerce Categories widget title
- Shortcode to insert default text and change one word throughout it?
- I want to customize the_posts_navigation function by replacing prev and next with images
- How would I correctly implement a new if statement in a child functions file?
- Remove all video attachment, both files and post/postmeta from database?
- method to fetch entire tag list on archive.php
- True email confirmation for registration (keeping unvalidated users from user table)
- Hide disclaimer from summary excerpts
- Adding A New Widget to WordPress Disables the Existing Widgets
- require_once() Causing categories and tag pages on dashboard to not refrsh
- How To Show Shortcodes In WordPress Custom Fields?
- Change post count on tag/terms pages to 10
- How do I integrate my Child Theme into a Custom Template?
- Shortcode to eliminate and replace with
- custom post with loading script per single post
- getExcerpt: Make ellipsis appear only if character limit is reached
- Get Value of Custom Field
- restrict access to specific urls on a specific period of time
- How to get tags and categories?
- child_of not working while searching
- How to request login for user but not for bots
- Removing Facebook contact field from user contact not working
- How do I add functionality to images?
- Display function from functions.php in tag.php
- WordPress Custom wp mail template return full template
- Problem with removing characters “<” – WpAllImport
- How to create a post without link in wordpress?
- multible shortcodes (for differnt values) with one function
- post_row_actions filter from parent theme not executing in child theme
- Customizer cuistom CSS Priority ordre Issue