[feed url="http://your_feed_url.com"]. More parameters are here: url - feed URL, show - number of posts to pull from the feed (default:10), scroll - number of items to be shown in the scroll (default:5), speed - scrolling speed (default:1000), pause - time between each scroll (default: 3000). To turn off scrolling effect and just to display the list of posts, use this parameter: static = true Version: 1.0 Author URI: http://aboobacker.com */ function display_ab_feed($atts){ extract( shortcode_atts( array ( 'show' => 10, 'url' => '', 'scroll' => 5, 'speed' => 1000, 'pause'=> 3000, 'static' => false ), $atts ) ); $data = ''; if($url){ include_once( ABSPATH . WPINC . '/feed.php' ); $rss = fetch_feed( esc_url($url) ); $maxitems = 0; if ( ! is_wp_error( $rss ) ) : $maxitems = $rss->get_item_quantity( $show ); $rss_items = $rss->get_items( 0, $maxitems ); endif; if ( $maxitems != 0 ) { if(!$static)wp_enqueue_script( 'vticker', plugin_dir_url( __FILE__ ) . 'js/jquery.vticker.min.js', array(), '1.0.0', true ); $data .= '
'; } else{ $data = "

No posts found in the specified feed. Please check the feed URL.

"; } } else { $data = "

Please enter the correct feed URL. Eg:- ".site_url()."/feed/

";} return $data; } add_shortcode('feed','display_ab_feed'); ?>