Advertisement
ridgey28

WP RSS Using Inline CSS Images

Mar 11th, 2016
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.26 KB | None | 0 0
  1. <?php
  2. //In relation to using inline CSS in blog post http://www.worldoweb.co.uk/2012/display-wordpress-posts-on-another-wp-blog#comment-2563455803 ?>
  3.  
  4. <div class="feedrss" style="background-image: url(<?php echo get_first_image_url($item->get_content()); ?>);">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement