RSS feed broken if grid layout
-
Hi,
if you use grid layout, extra tags (grid container div) are inserted in the rss feed and it won’t work (on all readers).
You can fix this in inc/posts.php. In functions “miniva_loop_start” and “miniva_loop_end” you should check if the query is for feed and if it is, then return. Like this:
function miniva_loop_start( $query ) {
if ( ! $query->is_main_query() ) {
return;
}
if ( $query->is_feed() ) {
return;
}
…and
function miniva_loop_end( $query ) {
if ( ! $query->is_main_query() ) {
return;
}
if ( $query->is_feed() ) {
return;
}
…Full code for the functions can be found here: https://pastebin.com/WKkd3Z32
Hope you will fix this on next update.
The topic ‘RSS feed broken if grid layout’ is closed to new replies.
