• Resolved Vimal Roy

    (@vimalroy08)


    Hello,

    We only imposed a 20-minute delay on the feed pages, not the sitemaps. After using this method, it also caused a 20-minute delay in the sitemap-news.xml(we are using the XML Sitemap & Google News plugin to generate the sitemap), Only the feed pages need the delay. Is there a method to resolve this problem?

    Please let me know your feedback.

    Thank you

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mircea Sandu

    (@gripgrip)

    Hi @vimalroy08,

    If you are using the snippet in the WPCode library to delay the RSS feed and it’s also affecting the sitemap generated by another plugin you might need to reach out to the XML Sitemap & Google News plugin support to see if you can change the check in the snippet so that it doesn’t affect that plugin’s functionality.

    Right now, the snippet includes a condition using the function is_feed() so adding an extra check there to prevent the filter from affecting the sitemap should help.

    Thread Starter Vimal Roy

    (@vimalroy08)

    Hello @gripgrip,

    I got a solution from the XML Sitemap & Google News plugin support team. The feed check condition needs to be modified, like below.

    Instead of using this?

    if ( is_feed()) {
    

    Use the below code by modifying that line.

    if ( is_feed() && ( ! function_exists( 'is_news' ) || ! is_news() ) ) {

    This line of code will fix the mentioned issue.

    Thank you ??

    Plugin Author Mircea Sandu

    (@gripgrip)

    Thank you for the follow-up here @vimalroy08, I’m glad to hear you found a solution.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Delay Posts in RSS Feeds snippet delayed feed also.’ is closed to new replies.