Advertisement
dominornovus

WordPress Dashboard RSS string fix

Apr 18th, 2012
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.60 KB | None | 0 0
  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. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement