daily pastebin goal
10%
SHARE
TWEET

WordPress Dashboard RSS string fix

dominornovus Apr 18th, 2012 26 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. // Paste by www.dominornovus.com for http://www.re-cycledair.com/wordpress-dashboard-widget-tutorial
  3. // Replace the echo string in the  "for each" function with:
  4.  
  5. echo '
  6. <li><span class="rss-date">['.$item->get_date('Y-m-d').']</span> <a class="rsswidget" href='.$item->get_permalink().'>'.$item->get_title().'</a>
  7. <p>'.$content.' <a href="'.$item->get_permalink().'">&raquo; Read full article</a></p>
  8. </li>
  9. ';
  10.  
  11. // Further resources:
  12. // http://www.re-cycledair.com/wordpress-dashboard-widget-tutorial
  13. // http://codex.wordpress.org/Dashboard_Widgets_API#Aggregating_RSS_feeds_in_the_dashboard
  14.  
  15. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top