Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 7th, 2013  |  syntax: PHP  |  size: 0.12 KB  |  views: 50  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. if (is_mobile()){
  2.         echo preg_replace("/\< *[img][^\>]*[.]*\>/i","",get_the_content(),1);
  3. }else{
  4.         the_content();
  5. }