RSS feed being redirected by adverts_disable_default_archive()
-
I have a client who’d like to have an RSS feed of the classified ads. Normally this is trivial with a Custom Post Type, but when I use the URL that should work [https://example.com/feed/?post_type=advert], the adverts_disable_default_archive() function redirects the request to the ads list page.
I believe fixing this behavior is fairly straightforward. I’ve edited line 1752 of wpadverts/includes/functions.php like so:
if( is_post_type_archive( "advert" ) && ! is_feed() )
Would you be willing to update the plugin with this change?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘RSS feed being redirected by adverts_disable_default_archive()’ is closed to new replies.