As you can see from the source is_feed
takes a parameter, so you should be able to restrict the query by using $query->is_feed('custom_rss2')
.
Related Posts:
- How to show page content in feed?
- Feed, RSS not able to clear the cache and cannot change the limit of cache life time
- How can I exclude tags from category_rss function?
- How to remove CPT comment feed from head?
- WordPress RSS feed – filter RSS content by custom field value
- Change WordPress RSS link with filter?
- Buddypress: Edit activity when new blog post [closed]
- Limit RSS feed to previous calendar month
- Remove a div from RSS feed
- Change custom post type GUID in RSS
- How to change permalink on headlines in rss feeds?
- Print only parent categories of post in custom RSS feed
- Hide a specific post from Archive Feed
- How do I remove certain HTML elements with specific classes from the feed?
- How can I define the RSS feed content length?
- Replace category titles inside RSS feed
- Explanation for apply_filters function and its variables
- How to modify Contact Form 7 Success/Error Response Output [closed]
- add_filter and changing output captions of image gallery
- How to secure or disable the RSS feeds?
- Filter media library items by size
- xmlrpc_enabled filter not called
- Change “You are now logged out” text
- How may I filter get_users() similarly to pre_get_posts?
- Using hooks to place content in theme dynamically
- wp_title() empty on a static front page
- Search pre_get_posts filter which can handle multiple post types and categories?
- End excerpt at the end of the sentence
- How can I add a fifth option to the alignment picker?
- Customize WooCommerce Error Message
- Dump contents of a variable inside a filter/hook callback that runs during save post
- Customize user account activation message
- Conditionally call add_action depending on post_type?
- Right way to add HTML bloginfo name using a filter
- Allow users to exclude categories? (WP 3.1.2)
- Show ‘Read more’ in rss feed
- Where can you find the available filter tags?
- Applying custom filter instead of the_content doesn’t render embeds
- De-bloating the page classes
- Redirect to checkout woocommerce failed
- Filter the regular price of woocommerce products
- remove action from AMP plugin
- Correct way to filter get_pages() function
- wp_insert_post_data filter hook identify current action
- Add Class to a div using a filter?
- What’s a good RSS Importer?
- Modifying a CoBlocks Filter in Functions
- Shortcodes — Using add_action, add_filter in the shortcode
- How to link the whole list item in Gutenberg’s latest posts block?
- Remove Content Filter
- views_edit-post filter not working (custom post type)
- Upload file if contains certain name
- Filters/Bulk Actions return wrong URL in admin dashboard
- I want to allow the use of a data-flw attribute in links in comments
- How to know what filter to use and how to use it?
- Give “Read More” precedence over excerpt() word count
- Add Bootstrap Classes to Recent Posts Widget
- Add filter to get_posts
- How can I output all apply_filters and do_action?
- Override has_post_thumbnail function
- Is it possible to override the default Gallery Settings form?
- Excerpt is being added above the content, but it should be after it
- WordPress add script with custom type (x-jquery-tmpl)
- Woocomemrce order and registration fileds to UPPERCASE
- Change login CSS
- How to redirect non-logged in users to login with post_password_required()
- Get Link to Feed On Term or Taxonomy
- Which plugin can do horizontal scrolling of RSS feeds in WordPress [closed]
- How to add nonce tag to inline script for CSP
- Filter content for get_the_content()
- How to override include_once pointed file using add_filter?
- How to strip out javascript in wp_posts `post_content`
- How replace individual elements in the RSS feed with a single string
- How can I filter tag_description()?
- What is the action hook to use if you want to capture the new password during password change?
- Get_template_part inside filter?
- Need to return shortcode text instead of the output
- Dashboard filter based on custom fields URL response code
- I want to add string array to this function to filter displayed option in drpodown [closed]
- How to wrap pattern-matches from the_content in [wiki]-shortcode tags
- how to develop a filter in wordpress to let the user filter the page content depends on the date (newest to oldest etc…)?
- Use add_filter inside another function
- How to filter reading/visibility posts based on role?
- Admin view: filter posts by whether they have specific taxonomy attached
- Filter posts by categories ajax is showing all the posts
- Filter and validate user role in registration
- How to use a TinyMCE filter?
- Unable to get WordPress’s apply_filters(‘site_url’) to return a https scheme
- Admin filter/error if post title is too long
- What is the scope and persistence of add_filter() and remove_filter()?
- RSS feed – get specific item from external feed
- Embedded Feed Update
- WP app getting confused about posts and pages
- GET form action. Redirect to self
- After adding filter to plugin’s code, post’s content doesn’t display
- if i put the code in my theme’s function.php file can it work?
- Admin New Order: Autofocus on Search a product
- WordPress wp_lazy_loading_enabled returns loading attribute set to lazy
- Remove or truncate site rss in
- Deregister Custom the_title Filter for edit_post_link