Skip to content

RSS2Yandex Feed Template for displaying RSS2 Posts feed with Yandex.news compatible

Notifications You must be signed in to change notification settings

borzov/wp-rss2yandex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

wp-rss2yandex

RSS2Yandex Feed Template for displaying RSS2 Posts feed with Yandex.News compatible.

Yandex.News is the first news service in Russia that automatically processes and systemizes news stories, providing the day's headlines and a search of literally hundreds of news sources.

Specialists in various fields use the service: economists, entrepreneurs, journalists, political analysts, IT specialists, employees of the State Information Service and private companies.

How to use

A simple to use feed template that makes feed for Yandex.News service. The new feed availeble after installation by simple URL, like that:

http://site.com/?feed=rss2yandex

or that:

http://site.com/export.php

Install

Choose one of the two ways to installation feed template:

Way #1 (recommended)

  1. Upload feed-rss2yandex.php to the /wp-includes directory
  2. Open functions.php into you theme folder (path like /wp-content/themes/[theme]/functions.php)
  3. Insert this code into functions.php:
    add_action('do_feed_rss2yandex', 'acme_product_feed_rss2yandex', 10, 1 );
    function acme_product_feed_rss2yandex() {
        load_template( ABSPATH . WPINC . '/feed-rss2yandex.php' );
    }
  1. That's all, now you can test feed: http://site.com/?feed=rss2yandex

Way #2

  1. Upload feed-rss2yandex.php to the /wp-includes directory
  2. Upload wp-export.php to the WP root directory
  3. That's all, now you can test feed: http://site.com/export.php

Changelog

0.4

  • Fixed generation
  • Fixed generation yandex:related
  • Extracting of images and external now is a single functions

0.3

  • Now feed contains auto-generated yandex:related
  • Small improvements into image extraction regexp

0.2

  • Created array with basic settings, now you can change meta-values
  • Fixed prepare "yandex:full-timext" and grabbing under-more text
  • Added basic comments and other small changes.
  • Tabs changed to spaces
  • Other fixes

0.1

  • First version, lets test it :-)

Credits

This feed template is built and maintained by Maxim Borzov

About

RSS2Yandex Feed Template for displaying RSS2 Posts feed with Yandex.news compatible

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages