Viewing 1 replies (of 1 total)
  • Plugin Author Rolf Allard van Hagen

    (@ravanh)

    Ah, yes in the new development version there is a filter xmlsf_news_filter_post_types available.

    If you have your own theme or are using a child theme you could do this:
    1. Go to https://github.com/RavanH/xml-sitemap-feed and use the green button on the top right to download a zip with the plugin files.
    2. Unzip the files and upload them via FTP, overwriting the current plugin files.
    3. Open your child theme functions.php and add the following code:

    
    function my_news_post_types( $post_types ) {
      $post_types[] = 'page';
      return $post_types;
    }
    add_filter( 'xmlsf_news_post_types', 'my_news_post_types', 11 );
    

    You will then have to go to Settings > Google News and switch post type to Page.

Viewing 1 replies (of 1 total)
  • The topic ‘Add pages to Google news sitemap’ is closed to new replies.