• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

OrganicWeb

Marketing Strategy Facilitators & Mailchimp Pro Partners

  • Home
  • Marketing Strategy & Planning
  • Mailchimp Services
    • Service Catalogue
    • Mailchimp Improvement Audit
    • Shopify & WooCommerce Marketing
    • Mailchimp Online Courses (on Udemy)
    • Mailchimp Live Classes
    • Mailchimp Corporate/Team Training
    • Consulting
  • Free Tools
    • 5 day Mailchimp marketing boost
    • Map maker for email
    • Is Mailchimp down?
    • Marketing facts and stats.
  • Content
    • Blog
    • Videos
  • Contact & About
You are here: Home / WordPress / Add your own RSS feed to WordPress Dashboard

Add your own RSS feed to WordPress Dashboard

If you develop WordPress websites for clients you may wish to show posts from your RSS feed in your clients WordPress Dashboard. This is especially useful if you regularly publish articles that will help your clients. Fortunately this is really simple using the WordPress wp_add_dashboard_widget and wp_widget_rss_output functions.

How to show your feed in another WordPress Dashboard

Follow the instructions below and you’ll soon be showing your blog posts in your WordPress Dashboard.

  1. Using an FTP client, such as FileZilla, open the website functions.php file in an editor.
  2. Add the following to the end of the functions.php file (before the closing ?>)
  3. add_action('wp_dashboard_setup', 'organicweb_dashboard_widgets');
    
    function organicweb_dashboard_widgets() {
    // CHANGE 'OrganicWeb News' BELOW TO THE TITLE OF YOUR WIDGET
    wp_add_dashboard_widget( 'dashboard_custom_feed', 'OrganicWeb News', 'organicweb_custom_feed_output' );
    
    function organicweb_custom_feed_output() {
    echo '<div class="rss-widget">';
    wp_widget_rss_output(array(
    // CHANGE THE URL BELOW TO THAT OF YOUR FEED
    'url' => 'https://organicweb.com.au/feed/',
    // CHANGE 'OrganicWeb News' BELOW TO THE NAME OF YOUR WIDGET
    'title' => 'OrganicWeb News',
    // CHANGE '2' TO THE NUMBER OF FEED ITEMS YOU WANT SHOWING
    'items' => 2,
    // CHANGE TO '0' IF YOU ONLY WANT THE TITLE TO SHOW
    'show_summary' => 1,
    // CHANGE TO '1' TO SHOW THE AUTHOR NAME
    'show_author' => 0,
    // CHANGE TO '1' TO SHOW THE PUBLISH DATE
    'show_date' => 0
    ));
    echo "</div>";
    }
    }
  4. Make changes to the script per the instructions.
  5. Save the functions.php changes to your webhost server.

Login to your Dashboard and you’ll now notice a widget with your feed items showing.

Found this useful? Please share:

Filed Under: WordPress

Watch Gary in action

Gary frequently adds Mailchimp instructional videos to his YouTube channel. Subscribe to keep updated.

→  Subscribe   ←

How to create a lead-capture form with file download.

How to target your most engaged Mailchimp contacts.

Reader Interactions

Comments

  1. Larry Levenson says

    July 20, 2016 at 9:02 am

    Exactly what I was looking for, Gary. Thank you! This function works great!

    Reply
  2. Riwaj Ghimire says

    July 18, 2017 at 4:13 am

    Wow ! thanks for this great function. I tried wordpress plugin too but that was not what client wanted because they could easily uninstall that, Now I have got best way to share security and Updates news to my clients

    Reply

Leave a Reply Cancel reply

Primary Sidebar

Ready? Boost your marketing …

Get Started

Learn from a Mailchimp Pro Partner

Signup to receive info about Gary's Mailchimp beginner and advanced classes.

Sign up

Gary on Australian National Radio

Changes are coming to the Australian Spam Act

Read Gary's article in SmartCompany

Mailchimp Video Tutorials

Meet Gary, Mailchimp Expert

Gary is a Mailchimp Expert and Partner. He delivers Mailchimp training and consulting services in Australia, New Zealand and Singapore. Gary presents at Mailchimp events and hosts the first, and only, Australian Mailchimp sponsored event. He is M.B.A. qualified from Henley Business School, U.K.

Contact Gary for your Mailchimp needs

Footer

Customer ratings

Mailchimp pro partners

Contact

Contact Gary for all your Mailchimp training, consulting and integration needs.

Contact Gary.

Copyright © 2021 · Sitemap · ABN: 40800872179 · Privacy Policy · Terms of Service